0

Is <p> property really necessary?

Because I saw some guys coding text in html without adding <p> property and just adding the text they want without any container..?

9th Oct 2023, 1:51 AM
elroi Coder
4 Réponses
+ 2
-It adds meaning to the text of being a paragraph so search engines and the browser know it's not just a normal text it's a paragraph. -Also browses add some basic styling like margin. - it works as a container in case you want to select it to apply some styling to it.
9th Oct 2023, 7:23 AM
Alaa Aldeen Shammr
Alaa Aldeen Shammr - avatar
+ 1
Only put it if you want to style that paragraph diffrent from the rest of the document
9th Oct 2023, 4:52 AM
Raul Ramirez
Raul Ramirez - avatar
+ 1
elroi Coder , Plz Read lessons again with carefully.. Quick guide .. No, the <p> tag is not always necessary. You can add text directly without a container, but note that it's good practice to use appropriate tags for better structure and accessibility. And Rakesh Deep , This is not appropriate place for advertising. So Maintain the dignity of this fourm and avoid such activity.
9th Oct 2023, 11:34 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
0
So the p property is a sementical element??
9th Oct 2023, 11:43 AM
elroi Coder