Re: validator passed a page with missing tags

The page is served with Content-Type: text/html, and it declares <!DOCTYPE
html>, so HTML5 rules are applied with no regard to XML requirements. In
any HTML version except XML-based versions, the tags </head> and </body>
are optional (and so are the corresponding start tags). These tags may be
used to indicate the structure of a document, and some people might
consider them as good practice, but they have no real impact on the
processing of the document (Neither do the start tags as such, though their
attributes may have an effect.)

Yucca

to 19. syysk. 2019 klo 21.03 Elizabeth Drake (elizabeth.drake@sfcollege.edu)
kirjoitti:

> Hello,
>
> I teach web development at a college. A student submitted the page shown
> at the URL given below. It is missing a closing <head> tag and both <body>
> tags. Can you explain why the Validator gave it a perfect pass? Attached is
> a screenshot of the results from the Validator.
>
> Thank you,
> Liz
> Elizabeth Drake, Professor
> Programming & Analysis, ITE
> Santa Fe College
> Gainesville, FL 32606
> 352-871-3001
>
> URL submitted:
> http://home.ite.sfcollege.edu/~cy.miller/cgs1820/shape_up/mod3/index.html
>
> Validator results:
> ------------------------------
> Please note that Florida has a broad public records law, and that all
> correspondence to or from College employees via email may be subject to
> disclosure.
>

Received on Thursday, 19 September 2019 19:55:01 UTC