HTML Paragraphs | HTML P | HTML Code for Paragraph | Coding Paragraph

HTML Paragraphs


  Define :

  • The HTML element represent a paragraph

    tag. Almost all websites use text and one of the most common ways to organize with paragraphs.

  • And you can create paragraphs in HTML using the

    tag you will need a start tag  and an end tag by default each paragraph will have a little bit of margin above and below it will give it some space between other elements although you can put text in other types of elements its very common to use

    tag

  • whenever you are working with a large amount of text.
  • A paragraph always starts a new line and the browser automatically add some white space.

     

Output :

HTML Horizontal Rules

The


tag defines a break in html page and is most often displayed as a horizontal rule.

 

 

Output :

The


tag is an empty tag, which means that it has an opening tag and no end tag.

 

 

HTML Line Break

HTML line break defines the
tag.

If you want a
 tag to be used without starting a new tag, then break the line and start the new line

Output :

The
 tag is an empty tag, which means that it has an opening tag and no end tag.

The
tag is an empty tag, which means that it has an opening tag and no end tag.

HTML {

} Element

 

The HTML {

} element stated as preformatted text.

 

The text-inside an 
element is displayed in fixed-width font and it show same spaces and line break 

Output :

 The {

} tag is both opening and closing tag.