home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2678
Discussions: 186,607, Posts: 2,227,051, Members: 230,241
Free Scan: Update Your PC's Outdated Drivers to Optimize Performance
Old June 24th, 2007, 04:13 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jun 2007
Posts: 3
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?

Linda K is offline   Reply With Quote
TechIMO.com Ads - Login or register for less ads.
How many errors does your computer have?

You no longer need to guess! This free stability scan and registry cleaner download will give you a complete diagnosis of your Windows registry, identifying errors and conflicts.

FREE instant scan


Guest, Register Free! to remove this ad and get your tech support questions answered in minutes!
Old June 24th, 2007, 04:31 PM     #2 (permalink)
ᅟᅠ
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: ɐqɟs
Posts: 10,446
I too didn't realize that closing tag was optional. But I don't feel like I missed anything because I would have always opted to use it even if it was not required.
__________________
OIC 0utpatient.com

OuTpaTienT is offline   Reply With Quote
Old June 24th, 2007, 04:36 PM     #3 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 13,697
Blog Entries: 1
Send a message via ICQ to EXreaction Send a message via AIM to EXreaction Send a message via MSN to EXreaction Send a message via Yahoo to EXreaction
Always use closing tags!

If you don't use them the web browser that the user uses needs to guess what you wanted to happen, which may break the page for some people.

As of XHTML standards (and maybe HTML 4) closing tags are required and the browser doesn't add in the closing tags anymore (or it is not supposed to at least).
__________________
The mark of the immature man is that he wants to die nobly for a cause, while the mark of a mature man is that he wants to live humbly for one.

EXreaction is online now   Reply With Quote
Old June 25th, 2007, 01:05 PM     #4 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,004
Send a message via AIM to sr71000
ex is right. closing tags are there for a purpose! The only time closing tags frustrate me is with tables and that's just cus i learned tables without them. look at the new xhtml 1.0 transitional standard...it's probably the best to go with for compatibility at this point xhtml 1.0 strict if you like a challenge!
sr71000 is offline   Reply With Quote
Old June 25th, 2007, 02:18 PM     #5 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 13,697
Blog Entries: 1
Send a message via ICQ to EXreaction Send a message via AIM to EXreaction Send a message via MSN to EXreaction Send a message via Yahoo to EXreaction
Yep, XHTML transitional works best.

But XHTML Strict would be better, especially if you want to make changes in the future.

If you've got a bit of extra time, I recommend you practice using Strict, so that it comes easier in the future. And of course, if you have any CSS questions, you can just ask on TIMO.
EXreaction is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export excel --> html - How to clean html? BITM@D Applications and Operating Systems 19 January 10th, 2007 02:54 PM
Custom Tags in CS:S Fofo General Gaming Discussion 11 January 3rd, 2006 07:36 PM
Stylesheet Tags ClubMed Webmastering and Programming 3 May 17th, 2004 02:39 PM
Optional ink cartridge? huh? John Prophet General Tech Discussion 4 November 2nd, 2003 11:57 PM

Most Active Discussions
Is It Just Me? (528)
Misery Loves Company... (1849)
Why Does the MOON Grow Bigger as It.. (18)
heatsink issue (10)
New Mobo (18)
UPGRADING C/D DRIVE TO 250GB & .. (14)
SSD's, RAID, and External Backup (7)
1 internet. 1 house. 3 computer. ho.. (13)
Is This A Compatible Gaming PC? (18)
Recent Discussions
system restore 'next' button wo.. (1)
firewall (1)
C++ compiler suggestions (4)
Official World of Warcraft Thre.. (4529)
Programming question (2)
UPGRADING C/D DRIVE TO 250GB &a.. (14)
Ubuntu or Xubuntu....anyone!!? (7)
Building my first PC and need s.. (0)
PNY vs Gainward (3)
FS: Dell 6000 laptop, modded 36.. (2)
Apple iPod touch 16 GB $200 (4)
Six 28-Disc Cross Design Black .. (4)


All times are GMT -4. The time now is 12:03 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28