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?
Optional Closing Tags in HTML
Started by Big Mountain, Feb 04 2008 02:05 PM
18 replies to this topic
#1
Posted 04 February 2008 - 02:05 PM
|
|
|
#2
Posted 04 February 2008 - 10:50 PM
I find it hard to believe that not closing your head tag is XHTML compliant.
#3
Posted 05 February 2008 - 10:00 AM
As people move towards using XHTML instead of HTML, the closing tags will stop being optional.
#4
Guest_Jordan_*
Posted 05 February 2008 - 01:03 PM
Guest_Jordan_*
I did not know this either and it seems against standards.
#5
Posted 08 February 2008 - 01:15 PM
why would they put it in as opptional in the first place? Would they do that in order to entice people to use it? I mean with out closing tagss it would "seem" alot easier.
I'm an angel. I kill firstborns while their mamas watch. I turn cities into salt. I even, when I feel like it, rip the souls from little girls, and from now till kingdom come, the only thing you can count on in your existence is never understanding why.
-
Do you know how you got that dent, in your top lip? Way back, before you were born, I told you a secret, then I put my finger there and I said "Shhhhh!"
-
Quotes taken from The Prophecy (1995)
-
Do you know how you got that dent, in your top lip? Way back, before you were born, I told you a secret, then I put my finger there and I said "Shhhhh!"
-
Quotes taken from The Prophecy (1995)
#6
Posted 13 February 2008 - 10:37 AM
Well I don't know what you mean by optional, it's either that the webpage will be still displayed correctly, or it is with the standards....
#7
Posted 25 February 2008 - 06:32 AM
If you want valid markup, you should close the tags.
Programming Assignment Help
while(true) { cout << "Idiot!" << endl; }
while(true) { cout << "Idiot!" << endl; }
#8
Posted 26 February 2008 - 09:36 PM
Duplicate post.....
http://forum.codecal...-tags-html.html
Looks like Promotion of Rothzael's signature,
Which looks like a free service.
http://forum.codecal...-tags-html.html
Looks like Promotion of Rothzael's signature,
Which looks like a free service.
#9
Posted 26 February 2008 - 10:15 PM
xXHalfSliceXx said:
Duplicate post.....
http://forum.codecal...-tags-html.html
Looks like Promotion of Rothzael's signature,
Which looks like a free service.
http://forum.codecal...-tags-html.html
Looks like Promotion of Rothzael's signature,
Which looks like a free service.
Um, sorry. I posted in that thread, then realised that the thread was a duplicate and everyone was actually posting in this one.
Programming Assignment Help
while(true) { cout << "Idiot!" << endl; }
while(true) { cout << "Idiot!" << endl; }
#10
Posted 13 March 2008 - 10:35 AM
wow I didn't know that I was always taught to close head tag.
I thought that it was always required since the beginning of HTML.
I thought that it was always required since the beginning of HTML.
#11
Posted 22 March 2008 - 07:44 AM
It Is required, if you really want a 100% valid page you should close each and every opened tag
#12
Guest_Kaabi_*
Posted 05 May 2008 - 04:46 PM
Guest_Kaabi_*
I'm pretty sure the <head> tag definitely needs closing. I'm pretty certain that the initial <html> isn't needed either, or if it is, </html> definitely isn't.


Sign In
Create Account

Back to top











