Common HTML Mistakes


Here is a list of the most common mistakes made in HTML code.
You can find more mistakes and details here.

Spelling


  1. Always check you have spelled everything precisely

  2. HTML uses American spelling, like "center" and "color", not "centre" and "colour"

Speech Marks


  1. Always put speech marks round the values of a parameter.
    For example in bgcolor="red", "red" is the value and needs speech marks round it.

  2. HTML only likes straight speech marks (") not curly ones().
    To get sraight speech marks, always type them into TextEdit or Notepad.
    Don't copy them from elsewhere.

  3. You can use double speech marks(") or single ones(') - HTML doesn't mind

Tags


  1. Always make sure every pair tag (which needs a partner) has a partner (eg <h1>..</h1>).

  2. Make sure the slashes go the right way. In tags and file and web addresses, slashes are "forward slashes" and go /.

  3. Tags can be written all on one line or on separate lines, or with spaces - HTML doesn't mind.

Go Berserk Book

Buy Now to buy for
£11.99 US$17.99 €13.99 (not incl. P&P)
for 1 or 2 books
Buy more and save!
Email sales@go-berserk.com
for 3 books or more.



Go Berserk CSS Book

Buy Now to buy for a special price of
£8.99 US$13.99 €11.99 (not incl. P&P)
for 1 or 2 books
Buy more and save!
Email sales@go-berserk.com
for 3 books or more.