Welcome to the Treehouse Community
Looking to learn something new?
Samuel Fils1,392 Points
header and body
What is the reason to add <header> and <body> in code if only <h1>...</h1> alone does the job. Is it for us who are coding to easily view to code organize or does it have some other function. For example <body> <header> <h1>Sam</h1> <h2>Sam</h2> <h3>Sam</h3> </header> </body>
or simply just
<h1>Sam</h1> <h2>Sam</h2> <h3>Sam</h3>
Bryce Santos11,144 Points
The header tag is purely semantic, and just makes code more understandable. As far as I know, after reading up on it, the body tag is not actually needed. Many people do say that it's just expected that you put it there, others say that you don't need it since the browser just automatically reads it like it's there.