SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member ChipOManiac's Avatar
    Join Date
    Jun 2012
    Location
    Talpittiya, Sri Lanka
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Break tags: Valid for prose and poetry?

    Poetry of usually divided into stanzas like so

    Her man sang
    she blushed
    the gorgon died
    and so on.

    In this case is using the break tag valid semantically within a paragraph like so:

    HTML Code:
    <p>
      Her man sang<br/>
      she blushed<br/>
      the Gorgon died
    </p>
    ?

    Thanks for any answers.

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Yes that is correct usage.

  3. #3
    SitePoint Member ChipOManiac's Avatar
    Join Date
    Jun 2012
    Location
    Talpittiya, Sri Lanka
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xhtmlcoder View Post
    Yes that is correct usage.
    Thank you for the reply

    Edit: umm how do I edit my first post as solved? I can't seem to find an Edit post anywhere near it.

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    The 'Edit Post' button only stays active for about 30-mins and there is no need to add solved to the original anyway. Usually just a reply like; "that works or thanks that answers/fixes my problem" to an answer is sufficient. In either case many questions can have multiple solutions.

  5. #5
    SitePoint Member ChipOManiac's Avatar
    Join Date
    Jun 2012
    Location
    Talpittiya, Sri Lanka
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xhtmlcoder View Post
    The 'Edit Post' button only stays active for about 30-mins and there is no need to add solved to the original anyway. Usually just a reply like; "that works or thanks that answers/fixes my problem" to an answer is sufficient. In either case many questions can have multiple solutions.
    Oh, well thanks again then

  6. #6
    SitePoint Enthusiast Yallow's Avatar
    Join Date
    Apr 2012
    Location
    South Dakota
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Finally someone using a <br> correctly. I can't tell you how many times I have seen people using <br> tags instead of padding or margins.

  7. #7
    SitePoint Member ChipOManiac's Avatar
    Join Date
    Jun 2012
    Location
    Talpittiya, Sri Lanka
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Yallow View Post
    Finally someone using a <br> correctly. I can't tell you how many times I have seen people using <br> tags instead of padding or margins.
    Been there, done it, got bashed for it, reformed myself, and now I can't thank the guy who bashed me enough.

  8. #8
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    No problem. Song lyrics and poems are typically some of the very few places where where the BR element usage would make any sense.

  9. #9
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,233
    Mentioned
    47 Post(s)
    Tagged
    1 Thread(s)
    I use them for postal addresses, for when they must be displayed the "postal" way. Address formatting is one area some people can argue over, but I already decided long ago that the newlines belong.

    I just saw a CMS doing bad br's:

    <ul>
    <li>
    <p>
    some text
    </p>
    <br/>
    </li>
    ...
    </ul>

    lawlz.

  10. #10
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,603
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by xhtmlcoder View Post
    No problem. Song lyrics and poems are typically some of the very few places where where the BR element usage would make any sense.
    The other one I can think of is with computer code in languages where the positions of the line breaks makes a difference to what the code does.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •