HTML

Paragraph

The paragraph tag (<p> </p>) is the foundational building block for text on a webpage. It defines a distinct block of text and automatically adds a margin above and below the content to separate it from other elements. This ensures your text is readable, well-spaced, and structurally sound.

<pre> Tag in HTML

The <pre> (preformatted text) tag is used to display text exactly as it is written in the HTML document. It preserves spaces, line breaks, and indentation. By default, the content is displayed using a monospaced font.

 

   <pre>
        This is preformatted text.
        It preserves both spaces
        and line breaks.
    </pre>
Interactive Sandbox
HTML/CSS/JS