HTML Paragraph

HTML Paragraph

ยท

1 min read

  • The HTML paragraph is a block-level element denoted with the <p> tag and always starts on a new line. This <p> tag helps us divide content into a manageable and readable manner.

Syntax of the HTML paragraph

<p>This is paragraph</p>

  • There is another way to write a paragraph called the pre-formatted tag, enclosed with the <pre> tag. This <pre> tag keeps the original spaces and line breaks exactly as written in the code.

Syntax of HTML pre-formated tag

<pre>This  is the 
      paragraph we are     
            written in the pre-formatted tag
                         denoted with 'pre' tag.
    </pre>


Happy Learning

Thanks For Reading! :)

-SriParthu๐Ÿ’๐Ÿ’ฅ

ย