Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 07:12:44 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Optional Closing Tags in HTML
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: Optional Closing Tags in HTML  (Read 3023 times)
Nikolas741
Limited Member

Posts: 3


« on: July 25, 2007, 07:55:17 AM »

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?
Report to moderator   Logged
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #1 on: July 25, 2007, 11:28:15 AM »

hi Nikolas, which schema have you used to validate your documents as if you validate with XHTML you'll either need to comment out tags in usual way or use close tags like this <br /> and it's required for any tag in the documents even those which previously could be left unclosed like <br>, <hr> or <img>.
Report to moderator   Logged

Denis
Andy
Administrator
Veteran
*****
Posts: 5 752



« Reply #2 on: July 25, 2007, 11:43:52 AM »

Quote
Are my concerns unfounded?

I think so.

A while back I produced what I claimed was The world's least standards-compliant web page. Viewing the source of this page shows how ridiculous your HTML code can look whilst still rendering well in modern browsers.
Report to moderator   Logged

johnhask
Contributor
Full Member
***
Posts: 182


« Reply #3 on: July 27, 2007, 05:55:02 PM »

I think validation is more important than trimming. I also find it easier to fix errors when they occur.
Report to moderator   Logged

donecweb
Administrator
Veteran
*****
Posts: 1 302


DonecWeb


« Reply #4 on: July 27, 2007, 06:08:19 PM »

I think validation is more important than trimming. I also find it easier to fix errors when they occur.
Johnhask what do you mean by trimming?
Report to moderator   Logged

DonEc Web

Links and accurate information provide the best answer, while garbage in provides garbage out.
johnhask
Contributor
Full Member
***
Posts: 182


« Reply #5 on: July 27, 2007, 06:34:59 PM »

'Trimming' as in trimming the code. At this point in time, page weight is far less an issue for me than it used to be.
Report to moderator   Logged

Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Optional Closing Tags in HTML

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!