What happens if you do not state content models in HTML5? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What happens if you do not state content models in HTML5?

EX: Saying <body> <H1> Smell me </H1> </body> instead of <body> <header> <H1> Smell me </H1> </header> </body>. Are they just for organization like comments?

29th Nov 2018, 3:23 AM
Cheese Burger Joe
Cheese Burger Joe - avatar
1 Answer
+ 2
<header> is one of the many semantic versions of a plain <div>, so it will generally act as if you put a div there Allegedly, search engines may find additional value in code that is organized in this way.
29th Nov 2018, 6:55 AM
Janningā­
Janningā­ - avatar