Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Optional Closing Tags in HTML


  • This topic is locked This topic is locked
2 replies to this topic

#1 Bodyag


    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 10 March 2007 - 03:08 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?
  • 0

#2 Guest_Jordan_*

  • Guest

Posted 11 March 2007 - 01:09 AM

I could never intentionally leave out a closing </head> tag. While I do not know the repercussions, it doesn't seem like good coding standards to follow. As I understand, mobile compliances (such as PAD phones) need closing tags in order to display correctly.
  • 0

#3 Void


    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 403 posts

Posted 11 March 2007 - 10:20 AM

I agree, not using these tags is bad design IMO.
  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download