+ 7

Is <p> Semantic?

https://www.thoughtco.com/why-use-semantic-html-3468271. Actually, I do not really understand semantic tags

10th Oct 2017, 12:01 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
2 Answers
+ 7
Yes <p> is semantic if you use it to contain paragraphs of text. "Semantic" is about expectations, if your markup is following a "Standard" semantic then other "people/bots" will know what your tags mean. Ex, screen-reader software will pick out the content of your <p> tags and "expect" them to contain textual content. Google's robot "could" use keywords from your <header> tags for instance. If the content in your <p> tag could better be described by another standard tag then you should use that instead. Have a look at https://www.w3.org/wiki/HTML/Elements/p
10th Oct 2017, 12:21 PM
nevu
nevu - avatar
+ 3
p is a semantic tag 😊 it tells the browser that the enclosed content is paragraph
10th Oct 2017, 12:14 PM
Raziul Islam
Raziul Islam - avatar