+ 7

Why we use the header element inside the body tag?

19th Mar 2019, 9:05 PM
Kanishka Dissanayake
Kanishka Dissanayake - avatar
14 odpowiedzi
+ 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).
20th Mar 2019, 2:16 AM
Marcos Rodrigo Sousa
Marcos Rodrigo Sousa - avatar
+ 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.
19th Mar 2019, 9:33 PM
program
program - avatar
+ 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.
19th Mar 2019, 10:34 PM
Dustin
Dustin - avatar
19th Mar 2019, 10:13 PM
Jorge
Jorge - avatar
+ 3
Zohir, Dustin, Jorge & specially Marcos Rodrigo Thanks a lot...
20th Mar 2019, 6:24 AM
Kanishka Dissanayake
Kanishka Dissanayake - avatar
+ 3
Marcos Rodrigo Sousa Very good explanation! 👍👏👌😉
21st Mar 2019, 12:57 PM
Pete Wright
Pete Wright - avatar
+ 3
Thanks, Pete!
21st Mar 2019, 11:35 PM
Marcos Rodrigo Sousa
Marcos Rodrigo Sousa - avatar
+ 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
24th Mar 2019, 4:32 AM
Sayyam Jain
Sayyam Jain - avatar
+ 1
Because it where the heading information of the body must be place Think of the body as a letter
21st Mar 2019, 1:18 AM
George S Mulbah II
George S Mulbah II - avatar
+ 1
These explanation's are very helpful thank you
23rd Mar 2019, 10:36 PM
Dean Moore
+ 1
Because the header is a text part of html
31st Mar 2019, 7:38 AM
Chuby Chidoka
+ 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
3rd Apr 2019, 12:08 AM
KHODANI A. NEVHULAUDZI
KHODANI A. NEVHULAUDZI - avatar
0
...at the top of the document ...inside of the body tag ...inside the footer ...inside of the head tag
4th Jul 2022, 6:35 AM
biruk endeshaw
biruk endeshaw - avatar