HTML Paragraph or HTML p tag is used to defines a paragraph of text in the browser.
Paragraph is a block elements, which means browser itself add whitespace after the content. An HTML
tag indicates starting of new paragraph.
The
tag is part of the core set of HTML elements and plays a fundamental role in displaying textual content on webpages.
The
element is semantic elements, which means tag itself defining what it will do.
Paragraph important for conveying the structure of the content to both browsers and assistive technologies.
Paragraph helps screen readers and other accessibility tools understand the organization of the text.
<p>Textual Content Goes here....</p>
Textual Content Goes here....
<p>Textual Content 1</p> <p>Textual Content 2</p>
Textual Content Goes here....
Textual Content Goes here....
<!DOCTYPE html> <html> <head> <title>Current Webpage Title </title> </head> <body> <p> My First Paragraph Text </p> <div> <p> My Second Paragraph Text </p> </div> </body> </html>
My First Paragraph Text
My Second Paragraph Text