« How to Convert AuthorIT to DocBook | Main | I Win Christmas! »
I'm working on a new version of my ancient, long-neglected HTML Tutorial, which I originally wrote in 2002. The Official List of reasons why I'm doing this includes:
But the real reason I'm doing this is because the tutorial currently says "tags" when it really should be saying "elements". Arrgh! I cringe every time I read that. I've added a section about this to the tutorial so that others can avoid my mistake...
A Digression: What's a "Tag"?
You'll often hear people refer to "tags," as in, "The markup tags tell the Web browser how to display the page." Almost always, they really meant to say "elements." Tags are not elements, they define the boundaries of an element. The p element begins with a
<p>open tag and ends with a</p>closing tag, but it is not a tag itself.
- Incorrect: "You can make a new HTML paragraph with a
<p>tag!"- Correct: "It's a good idea to close that open
<p>tag."Now that you possess this valuable information, you're in the same position as someone who knows that in the phrase "That's not my forte," the word "forte" should be pronounced fort, not for-tay. You get to feel slightly superior to people who say for-tay, but you really shouldn't go running around correcting them.
Sometimes you'll hear people say "alt tag," which is even worse. An "alt tag" is really an
altattribute. This important attribute provides alternative text for images, in case the user can't see the image for some other reason. We'll talk more about this attribute later.The element vs. tag confusion is sort of understandable: it's a common mistake even among professionals, and they both look like angle-brackety things, after all. But attributes are not tags, not even close. If you hear someone say "alt tag," this is a key indication that the speaker does not understand HTML very well. (You probably shouldn't invite them to your next birthday party.)
I suppose I shouldn't beat myself up, since nearly all of the prominent HTML tutorials get this and many other issues wrong, as any search for "html tutorial" makes depressingly obvious. Two notable exceptions are Stephanos Piperoglou's Webreference.com tutorial and Patrick Griffith's outstanding HTML Dog.
Posted by Evan Goer on Dec. 02, 2006 at 10:38 AM | Comments (5)
The basics:
http://www.yahoo.com automatically become links.This entry was posted on December 2, 2006 by Evan Goer.
For more entries, you can visit the main journal page or browse through the complete archives, which date back to 2001.
Text released under Creative Commons.
To use this license, you must attribute this work properly. This license does not extend to comments unless the original poster of that comment states otherwise.
Powered by Movable Type 3.33.
Home | About | Journal | HTML Tutorial
© Copyright 2001-2007, Evan Goer. Some Rights Reserved. Last Updated April 20, 2009.
Posted by Auros on Dec. 05, 2006 at 3:55 PM
Posted by Evan on Dec. 05, 2006 at 7:32 PM
Posted by Evan on Dec. 05, 2006 at 7:35 PM
Posted by phil on Dec. 09, 2006 at 4:49 PM
Posted by Evan on Dec. 09, 2006 at 5:55 PM