Go Back   DevHunters.com l Webmaster Forum - Web Advertising - Web Design - SEO Forums > Webmaster / Coding / Web Design Discussion > HTML / XHTML / CSS

HTML / XHTML / CSS Discuss HTML, XHTML and CSS coding in this forum.

Have A Look At Some Of Our Webmaster Related Sponsors!


Script Directory


Advertise Here


Market Leverage


Free Templates

3D Guide-Characters
3D Guide-characters


Advertise Here

Reply
 
LinkBack Thread Tools Display Modes
Old 03-01-2008, 02:17 PM   #1 (permalink)
New Hunter
 

Join Date: Feb 2008
Posts: 3
iTrader: 0 / 0%
Hunter Bux: 10.00
Zemfik 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?
__________________
Austin tx apartments austin texas
Zemfik is offline   Reply With Quote
Old 03-01-2008, 03:33 PM   #2 (permalink)
Senior Moderator
 
SpOrTsDuDe.Reese's Avatar
Default

There are tags, such as the <img> tag which there is no closing tag for, but you need to close </head>. It's standard markup and you cannot validate your page without it. If you don't close tags, everything that is put on there, will be not the way you want. Make sure you stay out of quirks mode by adding a doc type. w3schools.com has a lot of good resources.
__________________
+-(X)HTML, CSS, JavaScript, SEO, PHP, Flash-+
Code:
<style type="text/css"> u { text-decoration: none; } </style>
GameYin. Redesigning for DevPlooth.
SpOrTsDuDe.Reese is offline   Reply With Quote
Old 03-01-2008, 11:25 PM   #3 (permalink)
Peter J. Foti
 
domainer50's Avatar
 
Join Date: Nov 2007
Location: Upstate NY
Posts: 318
iTrader: 0 / 0%
Hunter Bux: 0
domainer50 has a spectacular aura aboutdomainer50 has a spectacular aura aboutdomainer50 has a spectacular aura about
Send a message via AIM to domainer50 Send a message via MSN to domainer50 Send a message via Yahoo to domainer50
Default

Ive never not closed a tag :) No non closers here :)
__________________
PeterFoti.com
Register Domains
domainer50 is offline   Reply With Quote
Old 03-01-2008, 11:42 PM   #4 (permalink)
The Dev Hunter
 
Hunter1's Avatar
 

Join Date: Mar 2007
Location: Indiana USA
Posts: 1,868
iTrader: 9 / 100%
Hunter Bux: 18,026.33
Hunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud ofHunter1 has much to be proud of
Default

If you want to be XHTML complient, don't even consider leaving something open if you do not have to which in most cases, you donn't have to.

Especially a Head Tag!!!
Hunter1 is offline   Reply With Quote
Old 03-03-2008, 09:12 AM   #5 (permalink)
Field Master
 

Join Date: Dec 2007
Posts: 179
iTrader: 0 / 0%
Hunter Bux: 0
sekuchi is on a distinguished road
Default

Me too, I always close it...
sekuchi is offline   Reply With Quote
Old 03-04-2008, 06:07 AM   #6 (permalink)
Senior Moderator
 
SpOrTsDuDe.Reese's Avatar
Default

Is the OP ever going to post back to this thread?
__________________
+-(X)HTML, CSS, JavaScript, SEO, PHP, Flash-+
Code:
<style type="text/css"> u { text-decoration: none; } </style>
GameYin. Redesigning for DevPlooth.
SpOrTsDuDe.Reese is offline   Reply With Quote
Reply

Bookmarks

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
Forum Jump


All times are GMT -5. The time now is 12:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios