U
U
Urukhayy2015-02-13 14:50:57
css
Urukhayy, 2015-02-13 14:50:57

How important is respecting the semantics of HTML?

Why so many different HTML tags, visually almost the same? The visual look and feel of each can be customized with a div. And so any tag. That is, for the user, you can make a clear page design using just a couple of HTML tags. Then the rest of the tags are made for search bots?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Chernyshev, 2015-02-13
@Urukhayy

Semantics brings order and organization to the code. Duplicates the logic of the arrangement of elements in html, for example, all sorts of footer and header. It's just that when you work, for example, with someone else's code, and you see divs endlessly nested inside each other, you have to spend a little more time searching for the desired element.

I
Ilya Kolin, 2015-02-13
@VaranCollins

Each tag does its job. HTML has existed for more than one year, and not one version.
Yes, many tags are no longer relevant. No one forces you to use all the tags - use the ones that are more convenient for you) Whether to observe the semantics ... Well, someone observes, someone does not.

G
GM2mars, 2015-02-13
@GM2mars

In addition to the above, semantics helps to better parse and analyze content for various applications, browsers, readers, and so on.
For example, various plugins a la "Reading Mode" better clear content from ads, sidebars, comments, and other non-core elements when the page is laid out taking into account semantic markup.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question