0
<p> tag is used for??
3 Réponses
+ 1
predictability, SEO, and flexibility
Browsers can be mischievous as it is, and there's generally not a compelling reason to give them additional ambiguity or wiggle room to do unpredictable things. Be explicit and don't give up trying to communicate clearly to browsers about your expectations.
It is generally understood (even though the algorithms are proprietary) that search engines benefit from meaningful (semantic) markup and will favor your site as higher quality of you demonstrate such diligence as a developer.
The body element is the main visible element (one of the highest ranking parents in the DOM) and there is only one in each document. Putting your content in a p element (or multiple p elements) allows you to maneuver it separately from the body element (or even other p elements, if you attach different classes or id's to them). This will especially make more sense once you learn more about stacking contexts.
0
Please review:
https://www.sololearn.com/learn/HTML/1025/?ref=app
0
heloo.. why we have to use <p>tag without that also we can write paragraphs on body tag its self.. can you pleas xplain about this