0

Difference between header and title and h1, h2etc, h3 etc...

Just like the tittle says, whats the difference? What's the point of the header inside the body if h1 will do the samething?...and I'm guessing the tittle tag is what makes the tab in the browsers display the name of the page right?

2nd Jul 2016, 5:36 AM
Mario Fuentes
Mario Fuentes - avatar
2 Respuestas
+ 3
Correct about the Title! It does display the name you want in the browser tab. However, the header tag is a fairly new html tag that is used to section off the document. You would put all the stuff you want in a header (nav, search bar, login, ect..) in this section, it just makes it easier in css to style. As for the different heading tags (h1, h2, h3...) those all have default sizes that html will create them in, but you use those for heading in your document, and mostly use create your own styling for each one in css if needed. This was all from my understanding of html. Sorry if i missed something or gave false information.
2nd Jul 2016, 5:52 AM
Tre Turner
Tre Turner - avatar
+ 3
title is used to show the webpage name in browser tab. header is new tag introduced in HTML5 which is for the data we want to show at the top of webpage. h1 h2...h6 are h heading tags which are used to give headings.
2nd Jul 2016, 9:46 AM
Nitin Sharma
Nitin Sharma - avatar