I can use <p> instead of <article> so what is the benefit of using <article>...!! | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

I can use <p> instead of <article> so what is the benefit of using <article>...!!

11th Jun 2018, 6:43 PM
Omar
Omar - avatar
2 Respuestas
+ 2
<p>‚ě° Defines the paragraph in htm document <article>‚ě° Article element represents a self-contained composition in a document, page, application, or site . This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
11th Jun 2018, 7:03 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Semantic mean... Try to read an html code... If you encounter an <p> you know that its an paragraph text but if you encounter an <article> you know that content its a important content piece of web page
11th Jun 2018, 9:36 PM
KrOW
KrOW - avatar