+ 1
If the purpose of the <article>, <section>, and <aside> tags are to replace <div>, can <div> and <class> still be used in html5?
Div tags
3 Respuestas
+ 1
Yes yes why not you can . Infact using css grid will also be good .
+ 1
Thanks a lot😄
0
Hi Joan Ojiako ,
Indeed article,aside ... are semantic tag.Their use is important for accessibility reasons and for browser and search engines by adding meanings so your html is interpreted better but div is still relevant in some cases as a generic container.
For classes , you can give same classes to several elements, so for exemple your aside and your nav can have the same class which will define in the CSS the color of text and font family only for those elements.
Or you can have several section and aside in your html also, so a same class for each would be normal.