HTML Code In CSS Tutorial Examples Not Semantic | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

HTML Code In CSS Tutorial Examples Not Semantic

I've noticed that none of the code in the examples or code repos in the CSS tutorial is semantic. There are lots of <div> tags used but no <section> & <article> tags like we were told to use in the HTML5 tutorial. Can someone explain why this is?

8th Dec 2022, 7:57 PM
Peter Cotterell
Peter Cotterell - avatar
1 ответ
+ 2
In my opinion they use div to make tutorial easier to follow. So we can focus on topic. In practice we use semantic elements on our web pages, because they are important for SEO
8th Dec 2022, 11:58 PM
PanicS
PanicS - avatar