0
What makes the <header> tag different from the <head>? Can the <header>tag be used instead of the <head>
html
2 Réponses
+ 1
That's a huge mistake.
There's a great difference between the two tags
Head <head>
===========
This is the part that "sets up" your html document.
By set up, I mean stuff like linking libraries, embedding CSS or JS, setting up your viewport, setting your page title .
Think of <head> as the brain of the html document.
Stuff put in the head tag aren't visible in your websites
Header <header>
=============
This is a new Html5 tag.
As its name implies, it's used for displaying headings in your websites.
Example, you might want to display a welcome heading on your web page, the <header> tag is meant to be a container for such headings
<header>
<h3>Welcome To SL</h3>
</header>
+ 1
Thanks