+ 4
How does header work?
5 Answers
+ 4
<head> tags contain configuration information about the page. <header> tags are what appears usually as a title on the site.
+ 3
The header is an HTML tag used to define a header in webpages. And it's a new tag in HTML5.
For example:
HTML code is like this:
<header></header>
CSS code is like this:
header {
width: 100%;
height: 60px:
}
+ 1
contents appear in title bar
and also used by search engines
for indexing
+ 1
In Html every tag is meant for different purpose.
While rendering data in Html
<body> tag repeats and reloaded evrytime
But <head>tag doesn't
<head > tag contains the startup script files and other required settings.
<head> tag is loaded before the body.
0
as far as I know in the past developers used to structure web pages with div elements and that was messy and confusing, but when the html5 came to play It represented semantic tags for most of sections of web page, like header that you should use It for top of your web page and put your navigation within It.