davej Posted September 14, 2012 Share Posted September 14, 2012 I noticed that the W3Schools HTML tutorial now omits <head> until you reach the "Advanced" section I think this is stupid. http://www.w3schools.com/html/default.asp. <!DOCTYPE html><html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html> Link to comment Share on other sites More sharing options...
niche Posted September 14, 2012 Share Posted September 14, 2012 Maybe, but never attribute to stupidity when there are many other much more positive explanations. Link to comment Share on other sites More sharing options...
Krewe Posted September 14, 2012 Share Posted September 14, 2012 One reason I think they omitted it was because beginners to html tend to think <head> tag is for the top of the page. They use it just like <body> except they think what they put in there will be visible at the top of the page (Like a banner). Obviously this isn't true, so to avoid this confusion they just leave it out, since HTML can work perfectly fine without it. I'm not just saying beginners MIGHT get confused, I have to help beginners to HTML learn at my school and a majority of them thought the head was for the top of the page. Link to comment Share on other sites More sharing options...
davej Posted September 14, 2012 Author Share Posted September 14, 2012 Ok, but now I see people who have various items such as titles, styles, and metatags floating above <body> with no <head>. I don't see any practicality in recommending anything other than... <!DOCTYPE html><html><head><title>MyTitle</title></head><body>Hello World</body></html> Link to comment Share on other sites More sharing options...
ShadowMage Posted September 17, 2012 Share Posted September 17, 2012 I can see valid reasons for both sides of the story. However, I think I have to lean more towards including the <head> right from the start. They don't have to go into detail about what it's for, just simply that it's required and that it can't have content tags in it. Then, in the advanced section they can explain the true purpose and the various tags it can contain. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.