HTML – Paragraphs

  • HTML paragraph <p> element is used to add paragraph text
  • It is block level element
  • <p> tag has default margin-top and margin-bottom i.e. 16px (1em)
  • A paragraph always starts on a new line

Example-

class-image

Output-

This is a paragraph of text.

πŸš€ Try it yourself! Click the button below to run the code and see the output in action.

HTML Code

Output

NOTE: If you want to break the line in between paragraph then you can use <br> tag

Example- <p>This is <br> with line breaks</p>

Leave a Comment