SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: HTML5 <hr> tag

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML5 <hr> tag

    Hi

    According to W3C spec, in HTML5, the <hr> tag displays a horizontal rule, and defines a change in the content.

    I want to know to what end?

    For example, if I have a <section>, which in itself defines a new section of content and I place an <hr> in between two paragraphs, would the <hr> indicate a change-of-thought / change of sub-section within that <section>, OR, does is define a change in content for the document (page) overall?

    Could someone explain the semantic meaning to the new <hr> spec a little more thoroughly to me, please?

    Thanks in advance.

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Could be used like:

    Code:
    this is content...
    
    ------<hr>
    
    this is a note on the above content
    
    ------<hr>
    
    more content.
    Or it could be used to divide content sections.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Logic Earth

    Thanks for the quick reply.

    From this, I gather that it's really just about a change of "thought" within the parent element..?

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,097
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


Tags for this Thread

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
  •