0

What makes the <header> tag different from the <head>? Can the <header>tag be used instead of the <head>

html

17th Aug 2018, 9:54 PM
folorunso taiwo
folorunso taiwo - avatar
2 Answers
+ 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>
17th Aug 2018, 10:19 PM
Dlite
Dlite - avatar
+ 1
Thanks
17th Aug 2018, 10:20 PM
folorunso taiwo
folorunso taiwo - avatar