Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 03-01-2008, 02:19 PM   #1 (permalink)
Junior Member
 
Join Date: 02-29-08
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

Zemfik is liked by many
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  
Add Post to del.icio.us
Reply With Quote
Old 03-02-2008, 06:04 PM   #2 (permalink)
Contributing Member
 
bogs's Avatar
 
Join Date: 08-01-07
Posts: 1,077
iTrader: 0 / 0%
Latest Blog:
Scottish Fold Cat

bogs is a jewel in the roughbogs is a jewel in the roughbogs is a jewel in the roughbogs is a jewel in the roughbogs is a jewel in the roughbogs is a jewel in the rough
as far as i know even without </html> tag its still working...
bogs is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-03-2008, 01:45 AM   #3 (permalink)
v7n Mentor
 
Boogle's Avatar
 
Join Date: 09-03-07
Location: England
Posts: 646
iTrader: 0 / 0%
Latest Blog:
None

Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
does it validte with w3c if you remove them?
__________________
Great new 'June' Javascript Framework
June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-07-2008, 01:38 AM   #4 (permalink)
v7n Mentor
 
Join Date: 07-24-06
Posts: 691
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
Depends on DOCTYPE. In HTML 4.01 Strict head and html tags are optional. For example the following code is valid:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <title>.</title><body><p>hello
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-07-2008, 01:42 AM   #5 (permalink)
v7n Mentor
 
Boogle's Avatar
 
Join Date: 09-03-07
Location: England
Posts: 646
iTrader: 0 / 0%
Latest Blog:
None

Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
That's probably not a good idea in general to me since we should all be using XHTML standards anyway- still you learn somert new everyday and i wasn't aware of that!

Boog's
__________________
Great new 'June' Javascript Framework
June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SEO and HTML Tags KevinJB SEO Forum 27 08-12-2006 09:08 AM
hyperlink html tags and firefox doppelt Coding Forum 3 06-21-2006 01:14 AM
HTML Tags and SEO Importance stuart SEO Forum 6 05-17-2004 02:14 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:44 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.