+ 3

HTML5: Article, section or div?

How can I know when I've to use those options to divide my webpage?

19th May 2018, 1:13 PM
Alisson de Souza
Alisson de Souza - avatar
3 Respostas
+ 4
Article = blog/ news story Section = a section of the document that makes sense if that were the only thing on the page div = everything else You should also be using HTML5 semantic markup such as <header><main><aside> and <footer>
19th May 2018, 2:18 PM
Derek Stockton
Derek Stockton - avatar
+ 4
Article = blog/news/info articles Section = a section inside article div = anything but it is only to make your code easier to read. so, you can use <article> inside <footer> nor <header> because it is like a custom tag an Info: you can even make your own tag like this <gggg>, <anything>, or <lol> in your html files, because html is xml based.
20th May 2018, 8:51 AM
Amethyst Animion
Amethyst Animion - avatar
+ 2
These tags are called semantic tags it does not make any visual diffrence, but it makes your code more readable and logical.
20th May 2018, 4:54 AM
Anurag Hazru
Anurag Hazru - avatar