![]() |
|
|||||||
| Register | FAQ | Members List | Arcade | Dev Directory | HB Bank | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() Advertise Here |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
New Hunter
|
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? |
|
|
|
|
|
#2 (permalink) |
|
Senior Moderator
|
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>
|
|
|
|
|
|
#4 (permalink) |
|
The Dev Hunter
|
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!!!
__________________
l Bid for Position l Website Advertising l Web Directory l Be a star in The DevHunters Directory |
|
|
|
|
|
#6 (permalink) |
|
Senior Moderator
|
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>
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|