SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist FCC's Avatar
    Join Date
    May 2006
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    BBcode Nonstandard code?

    Hi All,

    I was looking into BBcode and I've noticed how most take the and turn it into <b></b>, and the same occurs for many of the tags. If I remember I thought we didn't do that anymore and a more correct way would be to use css and use the text-weight function.

    So I'm wondering whether BBcode is even a correct way of making html code..

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The &#91;b&#93;&#91;/b&#93; tags in BBcode signify boldfacing, which is exactly what <b></b> in HTML do. Using something like <span class="bbcode-b"></span> would be plain silly.

    The B element in HTML is not deprecated. The problem is that it used to be used for emphasis (instead of EM or STRONG). BBcode doesn't have tags for emphasis, only for presentational effects (italic, boldfacing). Those should be translated into the corresponding HTML tags (<i></i> and <b></b>).
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Evangelist FCC's Avatar
    Join Date
    May 2006
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see. Thanks for the clarification.


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
  •