You are on page 1of 7

LESSON ONE - INTRODUCING HTML

You may read the following sections in their entirety or use these choices to go directly to a section. | Understanding HTML | | Different Versions of HTML | | The Netscape Problem | | HTML software to assist in web page design |

UNDERSTANDING HTML
HTML stands for HyperText Markup Language. H yper T ext M arkup L anguage LET'S BREAK THIS DOWN A LITTLE FURTHER

HYPER
You may have heard the expression "hyper" in describing someone. In simplest terms, it means active, kind of "all over the place". The word "Hyper" as part of HTML is similar in context. It simply means that when you are on the internet using a browser such as Netscape Navigator or Internet Explorer, you can in fact, go "all over the place". In browsing through the World Wide Web (WWW), if you see something you like, you can go immediately to it. There is no set order to do things in. Hyper is the opposite of "linear". Linear means that there is a certain order you must follow such as "you must do this before you can do that". Programming languages such as BASIC and FORTRAN are linear. HTML does not hold to that and allows you to jump to any page on the WWW and at any time. Thus the word HYPER refers to the idea that the text in HTML is not linear.

TEXT
We are working with text only files. More on that in Lesson Two.

MARKUP
"Markup" comes from the fact that in order to create web pages, we will be typing in the text and then "marking up" the text. If you are familiar with WordPerfect, consider this example. Suppose you just typed a document in WordPerfect. If you choose REVEAL CODES from the VIEW

menu, the monitor screen or Window splits into two parts. The top half of the screen shows the text you typed in and the bottom half shows the same text but with the words marked up with "codes" or "tags". For example, suppose you typed the following three lines in WordPerfect: Hi, this is bold This is italics These words are centered

If you choose REVEAL CODES, you would see the following on the bottom half of your screen in one version of WordPerfect: [Bold On]Hi, this is bold[Bold off][HRt] [HRt] [Italic On]This is italics[Italic Off][HRt] [HRt] [Just:Center]These words are centered[HRt] In other words, the text has been marked up with codes or tags as indicated between the [ ] symbols. Each [HRt] indicates that the ENTER key was pressed. [Bold On] means that everything after this tag is bolded. The [Bold Off] tag simply says that bolding is to end here. Unless you choose REVEAL CODES, you won't see these tags. All word processors have codes that tell the computer how to display the document, how to print it out, etc. In HTML, WordPerfect tags or the tags from any other word processor won't work. HTML has its own set of tags to mark up text. If you want something bolded or centered, you have to indicate so with HTML tags. WordPerfect automatically puts the tags in for you. In HTML, you must put in the tags yourself. If you want to see the tags for this page, just choose VIEW from the menu bar of your browser and then choose SOURCE or DOCUMENT SOURCE.

LANGUAGE
"Language" means that we are using a language with all its syntax. Note that HTML is not a programming language such as BASIC or FORTRAN. These are linear programming languages and are based on a whole different set of rules and are far more complicated to learn. The HTML language is easy to learn (trust me). | top | | bottom |

DIFFERENT VERSIONS OF HTML HTML 1.0

The original version of HTML was HTML 1.0. It had very limited features which greatly limited what you could do in designing your web pages.

HTML 2.0
HTML 2.0 then arrived and included all the features of HTML 1.0 plus several new features for web page design. Until January, 1997, HTML 2.0 was the standard in web page design.

HTML 3.0
HTML 2.0 served its purpose very well, but many people designing web pages (called HTML authors or webmasters) wanted more control over their web pages and more ways to mark up their text and enhance the appearance of their websites. Netscape, the leading browser at that time, introduced new tags and attributes called the Netscape Extension Tags. Other browsers tried to duplicate them but Netscape did not fully specify their new tags and so these extension tags did not work in most other browsers. It led to considerable confusion and problems when HTML authors used these tags and attributes and then saw that they didn't work as expected in other browsers. At about that time, an HTML working group, led by Dave Raggett, introduced the HTML 3.0 draft which included many new and useful enhancements to HTML. However, most browsers only implemented a few elements from this draft. The phrase "HTML 3.0 enhanced" quickly became popular on the web but it more often than not referred to documents containing browser specific tags (discussed below in "The Netscape Problem" section), instead of referring to documents adhering to the HTML 3.0 draft. This was one of the reasons why the draft was abandoned. HTML 3.0 is now an expired draft. Another reason why HTML 3.0 did not make it was because it was so "big". Future versions were now to be introduced in a more "modular" way so that browsers can implement them modular by modular or bit by bit.

HTML 3.2 (WILBUR)


As more browser-specific tags were introduced, it became obvious that a new standard was needed. For this reason, the Word Wide Web Consortium (W3C), founded in 1994 to develop common standards for the evolution of the World Wide Web, drafted the WILBUR standard, which later became known as HTML 3.2. HTML 3.2 captures the recommended practice as of early 1996 and became the official standard in January, 1997. Most, if not all, popular browsers in use today fully support HTML 3.2.

HTML 4.0 (COUGAR)


In the early days, HTML 4.0 was code-named COUGAR. This version introduces new functionality, most of which comes from the expired HTML 3.0 draft. This version became a recommendation in December, 1997 and a standard as of April, 1998. Explorer has done a very good job in implementing the many features of HTML 4.0. Unfortunately, Netscape has not kept pace. The latest version of Netscape Communicator still does not recognize the many tags and attributes introduced with HTML 4.0. This means that a web page that involves HTML 4.0 specific tags will look great in Explorer but can look disastrous in Netscape.

XHTML 1.0
You would think that the next major version after HTML 4.0 would be HTML 5.0 and with it would come a bunch of new tags that would do all sorts of wonderful things. That would be a good guess - but it would also be a wrong guess. The next version of HTML after HTML 4 is XHTML. XHTML stands for EXtensible HyperText Markup Language. EXtensible Hyper Text Markup Language XHTML 1.0 is not bringing with it a lot of new tags. The purpose of XHTML is to address the new browser technologies that is sweeping the world. Today web pages are being viewed in browsers through cell/mobile phones, cars, televisions, plus a host of hand-held wireless devices and communicators. Alternate ways to access the internet are continually being introduced. In many cases, these devices will not have the computing power of a desktop or notebook computer and so will not be able to accommodate poor or sloppy coding practices. XHTML is designed to address these technologies. XHTML also begins to address the need for those with disabilities (such as the blind and visually impaired) to access the internet. Thus web pages written in XHTML will allow them to be viewed on a wide range of browsers and internet platforms. XHTML 1.0 is the result of the hard working World Wide Web Consortium (the W3C) to bring some sort of standard to provide rich high quality web pages through these varied devices. XHTML became an official W3C recommendation in January, 2000. XHTML is now a web standard and is the next generation of HTML. | top | | bottom |

THE NETSCAPE PROBLEM


As stated above, in the early days of HTML, Netscape created a number of its own tags (extension tags) to HTML 2.0 that were not part of the official HTML 2.0 version. In other words, Netscape created a number of additional tags that would work beautifully in Netscape, but were not supported by other browsers such as Internet Explorer. Many of these extension tags did not even make it into HTML 3.2. This means that if you were using Netscape extension tags, while they may create good looking web pages in Netscape, the same pages viewed in Explorer would look entirely different and in fact give results that you did not want. This Netscape problem also illustrates the case for the need of a standard language that can be used by all browsers. Imagine what will happen if each browser were allowed to develop its own

tags. You will simply end up with all browser specific web pages. It would become impossible to design web pages that will work in all browsers. We need continuity and we need a standard language for all browsers. Netscape has argued that their extension tags will not shut down or hang up other browsers. Thus if another browser does not recognize a Netscape extension tag, it will simply ignore it - as if it didn't exist. Therefore if you centered text on a web page using a Netscape extension tag, then the text simply wouldn't be centered in these other browsers. While I have concentrated on the Netscape problem, the same arguments can also be stated for Explorer browsers for they too had their own extensions.

So what do we have here? Well, in summary, we have:


1. 2. 3. 4. 5. HTML 2.0 tags HTML 3.2 tags HTML 4.0 tags Netscape extensions Explorer extensions

Sounds confusing? Well it really isn't that bad. Basic web page design is, in fact, easy to learn. In this course we will be designing web pages using HTML 3.2 standard code because HTML 3.2 tags and attributes are accepted by most, if not all, versions of the most popular browsers in use today. I am assuming that you will want as many people as possible to be able to read your web pages. You can create excellent web pages using HTML 3.2 content. Using Netscape extension tags that are not part of HTML 3.2 simply means that many of these tags will only work when viewed in Netscape. Similarly if you use Explorer extension tags that are not part of HTML 3.2 then many of these tags will only work when viewed in Explorer. Even if 80% of the people use high level browsers that can view your web pages in the way you want them viewed, it still means that 20% or several million viewers will not be able to view your web pages in the way you want them viewed. We need to keep these things in mind when designing web pages. And if you are planning to make some money with your website, you certainly do not want to leave out any potential customers. You want the widest possible audience. We will also study a number of Netscape and Explorer extension tags because you should be aware of what they are. Some of you may also want the control that these extension tags give even if it means shutting out a portion of the audience on some of your web pages. At one time Netscape browsers dominated the browser market. Then Explorer started to take a larger share of the market at the expense of Netscape. Today, Explorer dominates the market and appears to be the browser of choice for most people. | top | | bottom |

HTML SOFTWARE TO ASSIST IN WEB PAGE DESIGN


Should I not simply use one of the programs on the market that makes up web pages for me? You could. While all of them will give a basic home page, a number of them are limited in what they

can do. Many do not, for example, give you all the features of HTML. However, I am also sure that there are programs on the market (and new programs coming out all the time) that do incorporate most of the features of the various versions of HTML. Still, in order to get maximum use out of these programs, you need to understand HTML and what it can do for you in the design of web pages. It would be good to know what will work in most browsers and what won't work. It would be good to know what tags are browser specific or what tags will work only in a high level browser. If you understand the basics of HTML, you will have a much better understanding of what you are trying to accomplish with these market programs. You could also use an HTML program to assist you with some of the basic stuff and then code the rest yourself with your knowledge of HTML. Someday you may want to experiment with some of these programs. There is no doubt that learning the basics of the HTML language is necessary to fully understand these web page design programs. Knowing HTML will allow you to tweak and fine tune a web page to perfection. To illustrate what I am trying to say, here are three unsolicited testimonials I received. This first one is from Karen who lives in the state of Georgia, USA. She writes: "I can't thank you enough for taking the time to explain HTML. I'm off work due to an illness. Being bored out of my mind I decided to try to create a web page without any knowledge of HTML. The programs I used did the basics, but I found them confusing because I lacked the knowledge of HTML. So I went surfing and found your website. I must say that I am impressed. After going through all the lessons, I've got some great ideas and can't wait to get started on my own page. I decided to dump the programs and do all the coding myself. When I finish my web page there will be a note of thanks and link to your website. My greatest appreciation, Karen." Here is an email I received from Brenda who lives in Illinois. She writes: "I have printed all of the pages of your lessons and am impressed at the level of information it contains. I can actually understand what you are talking about although I am brand new to HTML. I am teaching myself how to create my company web page using FrontPage and I have an embarrassingly simple web page on Geocities. Some trouble has occurred in FrontPage with extensions and color changes, hence I am trying to learn HTML to correct them. Thank you so much for taking the time to create these lessons. They are fabulous! Brenda." Our third email is from Sharon who lives in Pennsylvania, USA. She writes: "After being overwhelmed by HomeSite, and constrained by templates on free space websites, this is exactly what I was looking for. You write in a wonderfully clear, concise way, that's easy to follow. Your problems are instructive, and the pace is perfect. THANK YOU!" I have also received many other e-mails from people expressing similar view points. I'm not advocating that we "dump" these programs. For some people they are very essential in designing websites and in updating them. But the point to be made is that it is better to take some time and learn HTML first. Then if you do run into some problems with these programs, you will know how to correct them. So now sit back, relax, and learn a whole new language called HTML. You will be happy you did.

| Back to the top of the page | | Return to Home Page | | Return to Alternate Home Page | | Send me to Lesson Two |

The information contained in these free 21 lessons is Copyright , Brantford Educational Services, 1997 2007 by local and international copyright laws. All rights reserved. It is therefore illegal to copy these lessons into another website. If you find a copyright violation, please report it to htmltutorials@bfree.on.ca

You might also like