Re: Issue with Validator?

Thanks. That is interesting. Google's home page markup continue to use body and head tags but their own style guide suggests omitting them. W3C school still teaches <https://www.w3schools.com/tags/tag_head.asp> to use the <head> <body>  and <html> tags.
And I liked the phrase "HTML5, whatever that might mean today. "
Thanks for the assistance.


Neal Schmitt (he/him)
Area Head of Music Technology at Capital University<http://www.capital.edu/>
Twitter<https://twitter.com/capmustech> * Facebook<https://www.facebook.com/CapitalMusicTech/> * Instagram<https://www.instagram.com/capmustech> * YouTube<http://www.youtube.com/c/CapitalMusicTechnology>

Zoom Meeting ID 614 236 6791

https://capital.zoom.us/j/6142366791



Communication Specialist

Music Professional

Instigator

Internship Coordinator

Office phone: 614-236-6791

​

Fall Semester Office Hours


Mon/Wed 3-4pm

Tues/Thurs 11am-12pm

Or by appointment. Just email me.

Meeting ID 614 236 6791

https://capital.zoom.us/j/6142366791




________________________________
From: Jukka K. Korpela <jukkakk@gmail.com>
Sent: Thursday, September 30, 2021 1:31 PM
To: Schmitt, Neal <nschmitt@capital.edu>
Cc: www-validator@w3.org <www-validator@w3.org>
Subject: Re: Issue with Validator?

        ** [ This email originated outside of Capital University ] **



Schmitt, Neal (nschmitt@capital.edu<mailto:nschmitt@capital.edu>) wrote:

I ran this code through the validator and normally the validator would catch errors. But the following HTML comes back with no errors. There's no body tag and no closing head tag - so there are errors.

<!doctype html>

By using <!doctype html>, you request checking against HTML5, whatever that might mean today. If you served your document with an XML document type, then the validator would (among other things) check against XML rules, including the rules for obligatory tags. But apparently you didn’t, so the validator checked against normal HTML rules, in which the <body> and <head> tags and their end tags are optional, as they are in all versions of HTML except those labeled as XML (i.e.. HTML).

In fact, the <head> and <body> (and <html>) tags are optional and useless in all versions of HTML except those labelled as XML. They are at best documentary or informative.

Jukka, http://jkorpela.fi<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fjkorpela.fi&c=E,1,zJTsUHHGyt86DCNP9P8kafxm7oEgqhqj_H6XHQqfpaYwJ_ENLEV_WG1F_di_M8qQZ3XOSzVX-Hs4M08164-_TtkECSAGni6mCC0kxiZlqkhK8w,,&typo=1>

Received on Thursday, 30 September 2021 18:05:12 UTC