Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2014
    Thanked 0 Times in 0 Posts

    Question Confused over use of paragraph

    Same comment as earlier - total beginner here. No skills whatsover.

    I'm realizing that I apparently don't understand the use of <p>.

    Back in the day it was used as a "carriage return". And from what html validator tells me, and from what I've researched, this may no longer be true, and even the number of uses might be limited.

    Is <br/> now the proper way to perform a carriage return?

    Thanks, Will

  2. #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Thanked 1,874 Times in 1,858 Posts
    Hello Anonymoususer,
    You can look to your English classes for the definition of paragraph - paragraph (ˈpærəˌɡrɑːf, -ˌɡræf) —n: 1. (in a piece of writing) one of a series of subsections each usually devoted to one idea and each usually marked by the beginning of a new line, indentation, increased interlinear space, etc

    That is what the paragraph tag is for. By default it has a 16px top and bottom margin and you can set an indent if you like.

    A line break, <br />, is to insert a break in a line of text. It should never be used to create space.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use a DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts