BashChelik Posted January 9, 2010 Share Posted January 9, 2010 Hello fellow web designers!!!I have a doubt in my mind.I am not at peace with <head> tag. Look at following code: <html> <head>Some text here </head> <body></body></html> Now, everybody is saying how visible part of the web page is body.I was little experimenting and discovered that if i type some text between <head> tags, it will display it on the top part of page.So is this correct or not? Best of luck,Mirko Link to comment Share on other sites More sharing options...
Mencarta Posted January 9, 2010 Share Posted January 9, 2010 <head> is where information that the browser uses is located. You can type text in it and the browser will ignore it and just display it. Link to comment Share on other sites More sharing options...
trinistorm Posted January 9, 2010 Share Posted January 9, 2010 <head> is where information that the browser uses is located. You can type text in it and the browser will ignore it and just display it.Now and days browsers may still follow tags in the <head> section such as h1,h2 etc(FF at least). Maybe just an optimization feature Link to comment Share on other sites More sharing options...
Synook Posted January 9, 2010 Share Posted January 9, 2010 You are not supposed to put text meant for on-page display inside the head element. Most browsers will, however, assume that is what you mean if you mistakenly include some text or body elements in there. Your code will be invalid, however. Link to comment Share on other sites More sharing options...
BashChelik Posted January 9, 2010 Author Share Posted January 9, 2010 Thank you all for clarifying it to me. So to conclude: Inserting text between <head> tags is not by the W3C recommendation standard and it is just a browsers fail to show such text in a page. Best of luck,Mirko Link to comment Share on other sites More sharing options...
thescientist Posted January 9, 2010 Share Posted January 9, 2010 more or less. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.