HTML <p> tag

Use of <p> tag

The <p> tag defines an HTML paragraph. This tag allows to write a bundle of sentences. It is block level element, the web-browsers leave some spaces before and after the <p> element. You can modify the spaces (or margins) customly by using CSS margin property. If you are absolutely beginner to HTML, we recommended to use <p> tag to write sentences.
You know that paragraphs are written within <p> tag and </p> tag. You can omit end tag (or </p> tag) whenever another block element is used. Also, know that you can't put another HTML block elements like <div> tag, <table> tag, <aside> tag etc. inside the <p> element.
Display: Block

Default CSS properties of <p> tag

    p {
       display: block;
       margin: 1em auto;
       text-align: left;

Example of <p> tag

<p> This is a paragraph. </p>

Supported Browsers

Tag Chrome browser Internet explorer browser Firefox browser Safari browser Opera browser
<p> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<h4> HTML </h4>
HTML has the acronym of HyperText Markup Language.It is the most common language of the Internet's World Wide Web.With the coming if HTML5, a lot of features are also available like we can embed audio file, video file on the webpage.


html p tag

Attribute of <p> tag

Attribute Value Notes
align left
It defines the alignment of the paragraph. It is not supported in HTML5. Use CSS instead.