Get Paid to Participate     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?


Reply


Old
  Post #1 (permalink)   03-20-2007, 03:54 AM
HD Newbie
 
Join Date: Mar 2007
Posts: 3

Status: Carrym is offline
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?
 
 
 


Old
  Post #2 (permalink)   04-18-2007, 09:03 PM
HD Newbie
 
Join Date: Apr 2007
Posts: 6

Status: MoneyTalkPro is offline
I've never heard of "optional closing tags in HTML" before for anything. I was taught to believe that everything should have a closing tag, whether it would be <head>, <body>, <table>, etc. The only ones that I know of that don't need one of course are ones like <br>, <hr>, <img>, and a few others that I can't think of at the moment.

I'd also be afraid of not having the document show correctly because something wasn't closed when it should have been. The best case scenario is to just close everything that should be closed.
 
 
 


Old
  Post #3 (permalink)   05-12-2007, 12:57 AM
HD Newbie
 
Join Date: Apr 2007
Posts: 27

Status: KiranHost is offline
They aren't "optional" because browser designers had to find a way to compensate for all the lazy site builders. Take a took at something called a HTML Dom tree for more details.
__________________
KiranHost, LLC - Shared and Reseller Web Hosting Solutions
99.9% Uptime, cPanel, Site Builder
Host Unlimited Sites, PHP, Java, and more...
Instant Setup, and NO OVERSELLING!
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: