Home >> HTML 5 >> What is Paragraphs in HTML 5

What is Paragraphs in HTML 5

An HTML paragraph element is <p>.

A paragraph always starts on a new line, and browsers automatically add some margin before and after a paragraph.

Example

<!Doctype Html>  
<Html>     
<Head>      
       <Title>HTML Paragraph</Title>  
</Head>  
<Body>   
      <h2>First Paragraph</h2>
      <p>This is First Paragraph. </p>   
      <h3>Second Paragraph</h3>
       <p>This is Second paragraph. </p>
</Body>  
</Html>  

Output

First Paragraph

This is First Paragraph.

Second Paragraph

This is Second paragraph.

Post Your Comment

Next Questions
What is Styles
What is Text Formatting
What is Comments
What is Colors
What is CSS
What is Links
What is Images
What is Favicon
What is Tables
What is Table Borders
What is Table Sizes
What is Table Headers
What is Table Padding and Spacing
What is Table Colspan and Rowspan
What is Table Styling
What is Table Colgroup
How many type of Lists
What is Unordered Lists
What is Ordered Lists
What is Block and Inline Elements
What is HTML class Attribute
What is HTML id Attribute
What is HTML Iframes
What is HTML JavaScript
What is HTML File Paths

Copyright ©2022 coderraj.com. All Rights Reserved.