try another color scheme:


Go Back   TECH6.0 > Get Techie > Programming > HTML/CSS/JavaScript


Optional Closing Tags in HTML

This is a discussion on Optional Closing Tags in HTML within the HTML/CSS/JavaScript section, part of the Programming category; For as long as I've been validating web pages, I never realized that the closing </head> tag was optional in ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 17-01-2009, 10:04 PM
No Avatar

Techie
 
Join Date: Jan 2009
Posts: 79
Anchor is on a distinguished road
Default Optional Closing Tags in HTML

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?
Reply With Quote
  #2  
Old 17-01-2009, 11:38 PM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

You can't/shouldn't remove closing tags. There are basically two type of tags in HTML, empty and closing.

For ex. head is a closing tag which means it needs to closed (<head> and </head>)

And empty tag does not require to be closed (<br>)

I think you really need to learn basic HTML
http://www.w3schools.com/html/default.asp
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 01:36 AM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top