Wednesday, 28 March 2007

Module 3 Tasks contd

Optional Standards Task 2

Below is a copy of what was returned to me when i validated my index.html page through the W3C HTML validator. Most of the problems were to do with incorrect "LI" tags. I did not close them off.

Generally this can affect the display of the HTML page. I fixed the problems and validated the page again and passed!

This page is not Valid -//W3C//DTD HTML 3.2//EN!

Below are the results of attempting to parse this document with an SGML parser.

  1. Error Line 26 column 8: start tag for "LI" omitted, but its declaration does not permit this.
  2. Error Line 27 column 5: document type does not allow element "LI" here.
      
  3. The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
  4. One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

  5. Error Line 28 column 5: document type does not allow element "LI" here; missing one of "UL", "OL", "DIR", "MENU" start-tag.

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "

    " or "

    ") inside an inline element (such as "", "", or "").

  6. Error Line 29 column 5: document type does not allow element "LI" here; missing one of "UL", "OL", "DIR", "MENU" start-tag.
  7. Error Line 30 column 5: document type does not allow element "LI" here; missing one of "UL", "OL", "DIR", "MENU" start-tag.
  8. Error Line 31 column 5: document type does not allow element "LI" here; missing one of "UL", "OL", "DIR", "MENU" start-tag.
     

No comments: