• Paragraphs and Headings

    Creating paragraphs in HTML is simple. A paragraph tag starts with <p> and ends in </p>.

    <html>
         <head></head>
         <body>
             <p>This is a paragraph</p>
         </body>
    </html>

     

    Output
    This is a paragraph

    There are different types of heading starting from h1 to h6. In order to create a heading, starts and end the tag with the same type of heading.

    <html>
         <head></head>
         <body>
             <h1>Heading 1</h1>
             <h2>Heading 2</h2>
             <h3>Heading 3</h3>
             <h4>Heading 4</h4>
             <h5>Heading 5</h5>
             <h6>Heading 6</h6>
         </body> 
    </html>

     

    Output

    Heading 1

    Heading 2

    Heading 3

    Heading 4

    Heading 5
    Heading 6

    Related Post