0

Why do I have to?

Do you have to add some tags for your text in HTML? For example, in HTML5 it says you need to wrap your headings(<h1-h6>) in a <header> tag. But if you remove the header tag, the heading still works. So what's the point of adding these types of tags?

17th May 2020, 8:43 PM
Devaughn
Devaughn - avatar
2 ответов
+ 4
You use tags like header, section or footer instead of divs, to organise your html code. They will be easier to see and therefore, faster to edit when needed.
17th May 2020, 8:49 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 3
The use of these HTML elements usually has no effect on the presentation, this is rather the task of the associated CSS class. However, we can use it to structure the page and define, for example, which components belong to the navigation. If the UI is later converted from the general page structure, these specifications are evaluated and specifically implemented.
17th May 2020, 8:58 PM
JaScript
JaScript - avatar