document type does not allow element “a” here

This is a W3C error:

document type does not allow element “a” here; missing one of “p”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag

It’s caused when you don’t surround your HTML <a> tag within a block-level element. I usually surround my <a> tags with the <div> tags.
Just a note when validating your code via thw W3C site here http://validator.w3.org you may receive multiple errors displaying because of one actual errors. So the rule of thumb is just fix the first error are all the obvious errors you receive. You’ll notice that most of your errors will disappear.

Enjoy your coding!

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Share

You must be logged in to post a comment.