HTML <p> tag
Use of <p> tag
<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.
Default CSS properties of <p> tag
margin: 1em auto;
Example of <p> tag
<p> This is a paragraph. </p>
Full Code Example
<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.
Attribute of <p> tag
|It defines the alignment of the paragraph. It is not supported in HTML5. Use CSS instead.