HTML Paragraph Tag



The HTML paragraph tag <p> represents a paragraph.

it is a block line element and always starts with new line.

HTML Paragraph Syntax

 <p> Paragraph </p> 

Example

<!DOCTYPE html>
    <html>
    <head>
        <title> HTML p Tag</title>
    </head>
    <body>
        <p>This is a paragraph.</p>
        <p>This is another paragraph.</p>
    </body>
    </html>
    


Click on the "Run This Code" button to see how it works.



HTML Paragraph Attributes

Attribute Value Description
align left, right, center, justify. Attributes are define text alignment within a paragraph.




HTML

Welcome HTML Getting Started HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Links HTML Styles HTML Text Formatting HTML Tables HTML Images HTML Forms HTML Lists HTML Iframes HTML Comments HTML CSS HTML Colors HTML Classes HTML Id HTML javascript HTML Filepaths

HTML Advanced

HTML Doctypes HTML Validation HTML Validation HTML URL HTML URL Encode HTML URL Entities HTML Layout HTML Head HTML Meta HTML Scripts HTML Tags

HTML Media

HTML Media HTML Audio HTML Video HTML Plug-ins HTML Youtube

HTML Graphics

HTML Canvas HTML SVG