Results 1 to 2 of 2

Thread: If I say that <b> and <strong> are exactly the same in HTML, am I wrong?

  1. #1
    Join Date
    Oct 2022
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default If I say that <b> and <strong> are exactly the same in HTML, am I wrong?

    These two things can be different:

    With different CSS visual styles and look
    When you interact with them, they may have different JavaScript functions tied to them.
    Any code that can read html could handle them differently.
    They mean slightly different things. The bold tag talks about a certain visual element, while the strong tag says more about how important the subject is.

    It depends on a lot of things. They have something in common, but they may not be the same thing.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,345
    Thanks
    4
    Thanked 288 Times in 281 Posts

    Default


    Or more specifically...

    The <b> HTML element is used to draw the reader's attention to the element's contents,
    which are not otherwise granted special importance. This was formerly known as the Boldface
    element, and most browsers still draw the text in boldface. However, you should not use <b>
    for styling text; instead, you should use the CSS font-weight property to create boldface text,
    or the strong element to indicate that text is of special importance.

    Source

    https://developer.mozilla.org/en-US/...HTML/Element/b

    The <strong> HTML element indicates that its contents have strong importance, seriousness,
    or urgency. Browsers typically render the contents in bold type.

    Source

    https://developer.mozilla.org/en-US/...Element/strong

    coothead
    ~ the original bald headed old fart ~

Similar Threads

  1. Math wrong? Array wrong?
    By bluewalrus in forum PHP
    Replies: 0
    Last Post: 10-17-2009, 02:32 PM
  2. <b> versus <strong>
    By John_fresh in forum HTML
    Replies: 13
    Last Post: 03-24-2007, 01:05 AM

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
  •