+ 1

<div> Vs <article> What would you prefer and why?

28th Nov 2019, 2:36 AM
Vijay Mate
Vijay Mate - avatar
3 ответов
+ 4
Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors. — https://www.w3.org/TR/html5/grouping-content.html#the-div-element Excellent reads pertaining to your question. https://dev.to/kenbellows/stop-using-so-many-divs-an-intro-to-semantic-html-3i9i https://dev.to/kenbellows/why-i-care-about-the-semantic-web-2kn7
28th Nov 2019, 2:58 AM
ODLNT
ODLNT - avatar
+ 1
if its for more general use or styling purpose i'll choose div. if its for article i'll use article, plus its good for SEO
28th Nov 2019, 3:00 AM
Taste
Taste - avatar
0
Taste your choice seems good & reasonable. I think I should do the same.
28th Nov 2019, 4:36 AM
Vijay Mate
Vijay Mate - avatar