Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 02-28-2008, 04:17 PM   #1
Beta Member
 
Join Date: Feb 2008
Posts: 3
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?
__________________

Zemfik is offline   Reply With Quote
Old 02-28-2008, 07:11 PM   #2
Daemon Poster
 
wmorri's Avatar
 
Join Date: May 2007
Posts: 1,066
Send a message via AIM to wmorri
Default Re: Optional Closing Tags in HTML

No, that makes a lot of sense, I didn't realize it either. But that doesn't mean that I would stop doing it.
__________________

__________________
LEARN BY DOING NOT BY FOLLOWING DIRECTIONS!
Linux Forever!

I thought you were a hispanic/african american? Who is the white guy in the pictures?
wmorri is offline   Reply With Quote
Old 02-28-2008, 07:53 PM   #3
Baseband Member
 
justinGH's Avatar
 
Join Date: Feb 2008
Posts: 60
Default Re: Optional Closing Tags in HTML

intresting, i was unaware of that. its never been mentioned in any of the guides that ive read along the way either.
__________________
JustinGH
www.computingforum.org
email: justin@computingforum.org
email: for free hosting
justinGH is offline   Reply With Quote
Old 02-29-2008, 12:54 AM   #4
In Runtime
 
MacGirl's Avatar
 
Join Date: Jan 2008
Posts: 193
Default Re: Optional Closing Tags in HTML

Does that work with xhtml too, or just with html?

I was reading an article about xhtml the other day that said xhtml elements always have to have closing tags.
MacGirl is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 08:38 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0