The Most Common HTML Mistakes... :)
- The most common mistakes in HTML are usually just plain human mistakes
- Misspelling a tag... Using *here* instead of *href* or using scr instead of *src*...
- A Missing closing tag... (i.e. <b> and </b>). If a tag needs to surround something like text, then it must be closed. There are a few exeptions, like <hr> and <br> that do not not use a closing tag...
- Failing to surround an attribute with double quotes and quotes should be used for for *all* attributes!
- (e.g. Incorrect <font color=#ffffff>)
- (e.g. Correct <font color="#ffffff">)
- Missing a quotation mark.... Dropping a quote providing only one of a set for an attribute.(e.g. this="that or this=that" and should be, this="that")
- Leaving off one of the brackets -- < > -- that surround a tag,
- (e.g. Incorrect <font color="#ffffff")
- Using the word, *color* instead of *bgcolor* to make the table a differnt color, bgcolor is for tables and color is for fonts...
- Unbalanced Tags by mis-matching the starting and ending tags,
- (e.g. Incorrect <H1> ... </H2>)
- or (e.g., starting with <OL> and ending with a </UL>)
- Failing to include the proper ending tag -- either by omitting the required slash (/), or forgetting the entire ending tag all together, turning your entire page into bold text...
- Common Image mistakes,
- a) The misspelling of *src*... It is src and not scr...
- b) Calling a gif image when you meant jpg, and vise versa...
- c) Not using width and height atributes, (Using them makes fast loading pages)
- Linking mistakes...
- a) calling "href" *here*
- b) Forgetting http:// in a link...
- (e.g. Incorrect, <a href="www.google.com">)
- (e.g. Correct, <a href="http://www.google.com">)
- c) missing one or both quotes, double quotes folks.. ;-)
- d) forgetting to close the link with </a>
- e) Providing an incorrect URL in an Anchor tag, causing the link to fail
- Improper use of form tags... The form tag is a block-level tag, meaning that it starts a new section of your page. It is a common mistake to use the form tags within tables.
- Incorrect: <table><form><tr><td>..... </td></tr></form></table>
- Correct: <form><table><tr>.... </tr></table></form>
- Improper nesting of HTML tags... HTML tags should/must be closed in the opposite order than which they were opened.
- (e.g. Incorrect <i><b>text</i></b>)
- should be (e.g. Correct <i><b>text</b></i>)