0

<p> tag is used for??

7th Oct 2018, 7:31 AM
rafeek
rafeek - avatar
3 Respostas
+ 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.
7th Oct 2018, 9:30 AM
Janning⭐
Janning⭐ - avatar
7th Oct 2018, 7:43 AM
Janning⭐
Janning⭐ - avatar
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
7th Oct 2018, 7:44 AM
rafeek
rafeek - avatar