SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    eez
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is the semantic difference between <em> and <strong>?

    Hi!

    What is the semantic (meaning) difference between <em> and <strong>?

    Thanks

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EMphasis
    STRONG emphasis

    One is more emphasised than the other.

    Code:
    John: But if I use XHTML Strict it makes me a better coder, right?
    Tommy: <em>Shut up</em>.
    John: But...
    Tommy: <strong>SHUT UP!</strong>

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    STRONG is really superfluous. You could use nested EM elements to denote increasing emphasis.

    Some experts recommend that you don't use STRONG at all to mark up emphasis in normal text. They say that STRONG should be reserved for particular page components that should stand out, e.g., to highlight the currently selected option in a menu.

    When read out loud, STRONG should be emphasised more strongly than EM. For instance, it could be read louder and more slowly, with extra stress on each syllable.
    Birnam wood is come to Dunsinane

  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)
    I assume it's Swedish People that take a dislike to STRONG.

  5. #5
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Possibly.

  6. #6
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, that's not it. I like strong. But I don't like the definintion for it in HTML4.
    Simon Pieters

  7. #7
    Brevity is greatly overrated brandaggio's Avatar
    Join Date
    Dec 2005
    Posts
    1,424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Buddy Bradley
    EMphasis
    STRONG emphasis

    One is more emphasised than the other.

    Code:
    John: But if I use XHTML Strict it makes me a better coder, right?
    Tommy: <em>Shut up</em>.
    John: But...
    Tommy: <strong>SHUT UP!</strong>
    ROTFL !

  8. #8
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Yorkshire Ripper: actually the main advocate of this is Finnish.

    @John: LOL
    Birnam wood is come to Dunsinane

  9. #9
    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)
    Republiken Finland, well that explains things.


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
  •