+ 7
Why we use the header element inside the body tag?
14 Antworten
+ 2
Because the header of a page is part of the body of the page, just as the footer.
Think about this <body> as a human body: Head, middle of the body and the feet.
A page has the same concept: Header (is the head), section (middle of the body), and footer (the feet).
+ 7
// Because the <header> tag is used to create a block in the top of the page and the version of HTML is 5.0.
So, if you want to use a HTML5, you must declare a document.
+ 4
<body> is where you put things you actually want to show up on the page. <head> is for putting things you don't want visible. Good question.
+ 3
More details here: https://www.sololearn.com/learn/HTML/2199/
+ 3
Zohir, Dustin, Jorge & specially Marcos Rodrigo Thanks a lot...
+ 3
Marcos Rodrigo Sousa
Very good explanation! 👍👏👌😉
+ 3
Thanks, Pete!
+ 3
Because in body tag all things are visual elements which are seen in head tags there are non visual elements like it works in backend so there is no use of using in it
+ 1
Because it where the heading information of the body must be place
Think of the body as a letter
+ 1
These explanation's are very helpful thank you
+ 1
Because the header is a text part of html
+ 1
The header may contain a logo, and the navigation bar with 'home' , 'about' and so forth which has to the seen by the user so it has to be within the body tag
0
...at the top of the document
...inside of the body tag
...inside the footer
...inside of the head tag