HTML Paragraph | P HTML Tag

HTML Paragraph Tag

P HTML tag is used to define the Paragraph elements. This HTML Tag is used to write the paragraph in the web page. HTML Paragraph is represent by the <p> tag.

you have to just use <p> </p> inside the body tag and write multiple lines inside this paragraph tag.

Example – You can write a paragraph as –

<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Feugiat scelerisque varius morbi enim nunc. Convallis tellus id interdum velit. Quam nulla porttitor massa id neque aliquam vestibulum.
</p>		 

This shows that how can you write the paragraph in the web-page.(And you have to avoid the content of the web page because it is a Lorem ipsum.)

caution: Lorem ipsum means that a dumpy of content, if you do not have any content to write in any web so you have to use this Lorem ipsum for a dummy content.

Example – Code For Write Paragraph

<html>
    <body>
        <p> Lorem ipsum dolor sit amet,consectetur adipiscing elit,
            sed do eiusmod tempor incididunt ut labore et dolore 
            magna aliqua. Feugiat scelerisque varius morbi enim 
            nunc. Convallis tellus id interdum velit. Quam nulla 
            porttitor massa id neque aliquam vestibulum.
        </p>
        <p> Maecenas volutpat blandit aliquam etiam erat velit 
            celerisque. Posuere ac ut consequat semper viverra nam 
            libero justo laoreet. Dignissim cras tincidunt lobortis 
            feugiat vivamus at. Bibendum enim facilisis gravida neque 
            convallis a cras semper auctor. At in tellus integer eugiat 
            scelerisque. Gravida dictum fusce ut placerat orci nulla 
            pellentesque.   
        </p> 
    </body>
</html>
html paragraph or p html tag
Fig.1 – P Tag in HTML application and uses Example.

Warning: All the spaces,new lines and tab are removed from the HTML Elements. But if you want spaces so you have to used &nbsp to get the spaces and <br /> tag to get the new line.

Example – Code For Write Paragraph

<html>
    <body>
        <p> Lorem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsipsum dolor    
            sitamet,consectetur adipiscing elit, sed do eiusmod tempor 
            incididunt ut labore et dolore magna aliqua. Feugiat 
            celerisque varius morbi enimnunc. Convallis tellus id 
            interdum velit. Quam nulla porttitor massa id uneque 
            aliquam vestibulum.
        </p>
        <p> Maecenas volutpat blandit aliquam etiam erat velit 
            celerisque. <br /> <br/> <br />Posuere ac ut consequat 
            semper viverra nam libero justo laoreet. Dignissim cras 
            tincidunt lobortis feugiat vivamus at. Bibendum enim 
            facilisis gravida neque convallis a cras semper auctor. At 
            in tellus integer eugiat scelerisque. Gravida dictum fusce 
            ut placerat orci nulla pellentesque.   
        </p> 
    </body>
</html>
Paragraph Tag- In HTML
Fig.2 – p Tag in HTML – Output screenshot of the above code.
You can leave a response, or trackback from your own site.

One Response to “HTML Paragraph | P HTML Tag”

  1. Dia Simpelo says:

    Hey! I could have sworn I’ve been to this site before but after reading through some of the post I realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back often!

Leave a Reply to the article

Learning & Certifications
Follow Us
Facebook Icon   Linked In Icon   Twitter Icon  
Validation and Recognition

Valid CSS! Valid HTML5!          Protected by Copyscape