It appears you have not yet registered with our community. To register please click here...


Optional Closing Tags in HTML

This is a discussion on Optional Closing Tags in HTML within the General Development forums. Topic: For as long as I've been validating web pages, I never realized that the closing </head> tag ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Display Modes
Old 04-24-2008, 08:53 AM   #1 (permalink)
 
Status: Junior Member
Join Date: Sep 2007
Posts: 27
Trader Rating: (0)
nocko is on a distinguished road
TD$: 240.00
Donate
Smile 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?
_________________
make money favorite casual games
nocko is offline   Reply With Quote
Old 06-09-2008, 07:34 AM   #2 (permalink)
 
Status: Junior Member
Join Date: Jun 2008
Posts: 24
Trader Rating: (0)
kickass is on a distinguished road
TD$: 165.00
Donate
Default Re: Optional Closing Tags in HTML
The start and end tags are optional for the html, head, and body elements as well as some other elements.
kickass is offline   Reply With Quote
Old 06-16-2008, 08:28 AM   #3 (permalink)
 
Status: Junior Member
Join Date: Jun 2008
Posts: 7
Trader Rating: (0)
Aditi is on a distinguished road
TD$: 70.00
Donate
Default Re: Optional Closing Tags in HTML
The start and end tags for html, HEAD and BODY are all optional in html. It's perfectly valid to leave them all out.

I'd be concerned that something, somewhere would not parse the document correctly if I removed the closing </head> element.
Aditi is offline   Reply With Quote
Old 07-17-2008, 01:54 PM   #4 (permalink)
 
Status: Junior Member
Join Date: Jul 2008
Location: USA
Posts: 8
Trader Rating: (0)
new_web is on a distinguished road
TD$: 55.00
Donate
Default Re: Optional Closing Tags in HTML
Hi all, you all are telling right thing but according to me, we should use the proper coding weather it’s optional or not.

Thanks!
__________________
Find your affordable SSL certificate on SSLStar.
new_web is offline   Reply With Quote
Old 07-18-2008, 04:09 PM   #5 (permalink)
 
Status: Administrator
Join Date: Jul 2008
Posts: 3
Trader Rating: (0)
NathanWong is on a distinguished road
TD$: 25.00
Donate
Default Re: Optional Closing Tags in HTML
Yeah, it's best to just leave them in. It doesn't save you any significant time typing, or save any significant amount of bandwidth, and it's far more semantically accurate to have the closing tags. Leave 'em in; the web's moving forward to XHTML where leaving out tags aren't allowed.
NathanWong is offline   Reply With Quote
Old 10-17-2008, 12:46 PM   #6 (permalink)
 
Status: Member
Join Date: Oct 2008
Posts: 39
Trader Rating: (0)
antoniyo is on a distinguished road
TD$: 245.00
Donate
Default Re: Optional Closing Tags in HTML
HTML started with <html><head><body> or also closed with </body></head></html>.
antoniyo is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
H.T.M.L. Elements snowman Coding Tutorials 1 10-24-2008 07:49 AM
Optional Closing Tags in HTML Carrym HTML & CSS 4 09-05-2008 06:13 AM
Basic H.T.M.L. Tags snowman Coding Tutorials 1 09-04-2008 11:38 AM
A language known as HTML Capuano25 HTML & CSS 4 07-22-2008 05:48 AM
Intro. to H.T.M.L. snowman Coding Tutorials 0 12-09-2006 07:02 PM


Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0