|
An overview of HTML |
|
http://www.meyerconsult.com/htmlintro/overview.html |
||
What doesURL mean anyway? What about HTML? |
|
|
What is HTML? |
HTML stands for Hypertext markup language. The way HTML works is you use tags to mark up the various elements of a web page:
The user's web browser then interprets or parses the tags and uses the tags along with their attributes to figure out how to display the information on the user's screen. When parsing the tags, the web browser ignores all whitespace. What does this mean? Any extra spaces or returns (blank lines) are discarded before the browser displays the page to you. For those of use used to word processing, where we just hit return several times if we want several blank lines, designing pages in HTML can be quite a challenge!
|
|
Why do web pages sometimes look different on different computers? |
Keep in mind that since each user can have their web browser set to a different default font, or a different default font size, this can change how a web page displays from computer to computer. Some older machines with older video cards can not display graphics at as high a resolution as newer machines. Many web site designers do not test their graphics on older machines to see what they look like. Some web sites are so poorly designed that somebody on an older machine cannot navigate them at all. The primary goal when designing your web site or web pages is: who is your audience?. Design the page so that all members of your target audience will be able to navigate it. Also, the same web page might be displayed differently depending on which web browser you are using because of subtle differences in how each browser is configured to display those tags. Some browsers are more forgiving of a beginner's errors. A page that looks fine in one browser might not display at all on another! It is always a good idea to look at any page you've done using both Netscape and Internet Explorer. An agency called the World Wide Web Consortium has been working to achieve some standardization in how browsers interpret HTML. They also provide one of the most technically correct validation services. To use this service, you must specify what version of HTML you are using as the first line of your document (you'll see as the first line in all of my examples--just copy and paste it). Dr. HTML also provides another validation service (use the single page analysis link). Dr. HTML allows for spell checking in addition to checking the structure of your HTML. Using validators is the best way to insure that your web page will remain viewable even as HTML continues to evolve.
|
|
Almost all tags have start and end tags.
|
With only a few exceptions, most HTML Tags have a start and an end tag. The exceptions in HTML 4.0 are:
Although you can leave off certain end tags, what happens is the web browser then makes assumptions about where that tag should have ended which can result in strange results. It is always better to use explicit end tags because then you are telling the browser specifically where you wanted the tag to end, and not relying on defaults which could vary from browser to browser. Start tags always have the syntax: End tags always have the syntax: Note: Some attributes need quotes around the value. Some do not.How can you tell when you use quotes? It is simple, actually. Any time that attribute's value has a character in it other than a-z, A-Z, or 0-9, then you need quotes. |
|
How can I know which attributes can be used inside of which tags? |
Not all attributes can be used in all tags. The best way to find out what attributes can be used inside which tags is to buy a book such as:
There are some tags that cannot have attributes. These are:
|
|
Always nest, never overlap |
In HTML you should always close the tag you most recently opened first. Don't get the tags out of order, or you might get some very strange results, as well as having trouble getting those pages to validate! <FIRSTTAG><NEXTTAG> The text you are marking up</NEXTTAG></FIRSTTAG> What I usually do is put in both the start tag and end tag in and then click my mouse in between them and add the text that I am trying to mark up. That way I don't ever forget to end a tag I started. |