Results 1 to 4 of 4

Thread: Whats better practice: <br /> or <p class="marginontop">?

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Whats better practice: <br /> or <p class="marginontop">?

    Hello HTMLers,

    So I've been making a few websites now - and always strive do do things the best way - so i struggle a bit when in the middle of paragraphs and i need a break, i don't like the look of <br /> and think its kind of cheating BUT easier than creating a new class of <p> with margin added on top.

    However, if someone could reasure me that either <br /> isn't cheating or that a new class of <p> is by far better in the eyes of, say google, then that would make my day... thanks!

  2. #2
    Entrepreneur deeplist's Avatar
    Join Date
    Dec 2001
    Location
    Auburn, IN - USA
    Posts
    3,341
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Have you guys lost it? <br /> vs <p> are you serious? Do whatever makes the site look better. I seriously doubt that google gives a rat's --- either way.
    Charles Decker IV
    Decker Services LLC - President / Owner
    SN95 Mustang Forums - Site Technician / Moderation Team

  3. #3
    Sup, Recoil here. themoose's Avatar
    Join Date
    Jun 2005
    Location
    Uzbekistan
    Posts
    8,805
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you're in the middle of a paragraph and need to use a linebreak, you'd be silly to use anything other than <br />. That's exactly what it's for.

    Don't, however, use it like such

    Code:
    <p>Blah blah blah<p>
    <br /><br />
    <p>Blah blah blah<p>
    <br /><br />
    <p>Blah blah blah<p>
    <br /><br />
    <p>Blah blah blah<p>
    If you're doing this, you should be using margin-top instead.

  4. #4
    Jay Street iBrightDev's Avatar
    Join Date
    Oct 2005
    Location
    Not sure, need a GPS.
    Posts
    7,151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    exactly what Colin said above.
    Full-service digital agency based in Scottsdale, Arizona - iBright Development

Similar Threads

  1. Middle School Students Found Having "---" In Class
    By Dean in forum General Discussions
    Replies: 78
    Last Post: November 12th, 2003, 12:27
  2. Replies: 1
    Last Post: March 23rd, 2002, 13:59
  3. Replies: 0
    Last Post: March 23rd, 2002, 02:12
  4. Replies: 0
    Last Post: March 23rd, 2002, 02:11
  5. Replies: 0
    Last Post: March 23rd, 2002, 02:09

Bookmarks

Posting Permissions

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