Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

Help Me/Question What Is Difference Between Pre Tag And P Tag?

Discussion in 'HTML Coding' started by Doominic anderson, Mar 6, 2016.

  1. Doominic anderson

    Yellow Belt

    Joined:
    Jan 30, 2016
    Messages:
    399
    Ratings:
    +21 / -0
    HTML has lot's of tag which is used to create a static webpage,after introducing HTML5 some other tags are also increased like audio,video,canvas,command e.t.c.
    P tag is used for paragraph writing,if you want to write a long description of something containing several sentences together.
    What is the difference between P tag and Pre tag?
     
  2. krishatg

    Yellow Belt

    Joined:
    Jan 16, 2016
    Messages:
    240
    Ratings:
    +14 / -0
    The text that we write in a <pre> element is usually displayed in fixed width font and that usually is Courier font.It preserves both spaces & line breaks.

    Whereas,

    The text written in <p> tag is formatted in a paragraph format. We need to open as well as close the <p> tag.
     
  3. justiinn

    Yellow Belt

    Joined:
    Feb 3, 2016
    Messages:
    161
    Ratings:
    +28 / -0
    <p> tag means paragraph tag that is you are writing in paragraph format in between <p> tag.
    whereas <pre> tags means what ever you write in between <pre> tag browser display it as it is and pre tag always comes in courier font.
     
  4. RADHESHYAM GUPTA

    Yellow Belt

    Joined:
    Feb 13, 2016
    Messages:
    362
    Ratings:
    +20 / -0
    <pre> tag is show that what are you type in <pre> tag in <pre> tag you have to tell that when you want to drop a new line but
    in <p> tag automatically drop the new line with warp,<p> tag is use for paragraphs, It is start with <p> and end with the include only "/" in <p> that means </p>
     
  5. niranjan kumar

    Yellow Belt

    Joined:
    Feb 12, 2016
    Messages:
    471
    Ratings:
    +13 / -0
    p tag is used in html for making a paragraph in web page. in almost webpage <p> tag is used for making a paragraph, when you are designing a web page there are some content that you need to show on webpage these content are necessary to show .
     

Share This Page