View Full Version : Optional Closing Tags in HTML

02-24-2008, 12:25 PM
For as long as I've been validating web pages, I never realized that the closing </head> tag was optional in HTML. I feel as if I've missed the boat at times.

While I'm all for trimming excess code, I just cannot for the life of me strip out closing tags because they are optional in HTML. I'd be concerned that something, somewhere would not parse the document correctly if I removed the closing </head> element.

Are my concerns unfounded?

02-24-2008, 01:03 PM
Here you go http://www.w3.org/TR/html401/index/elements.html

02-24-2008, 03:45 PM
I believe in HTML you can plow straight in without any container tags.
However, there are advantages: never forget that your body and html tags can be styled, too =)