Friday, February 24, 2006

What is BBCode? What are the differences between HTML and BBCode?

I have seen lot of forums that require postings be written in BBCode rather than HTML.

The main reason, must be so that there is some control over people not adding unauthorized links (like including pictures from unaffiliated Web sites) because it doesn't seem that much easier than HTML when you look at the two.

The basic differences between BBCode and HTML is that HTML uses <> two surround tags, BBCode requires that you use [ and ]. For example:

  • Bold text is produced with [b] text to have in bold[/b],
  • While italics is generated with [i] and [/i] and
  • Underlining is done with [u] and [/u].
  • Font color and size changes are accomplished with deprecated HTML "font" tag attributes: [color=red]text in red[/color] turns some text red, for example. You can also use the hexadecimal color equivalent (that is, use [color=#00ff00]), and text size can be specified as a value (that is, use [size=1]).
  • There are two ways you can show a hypertext reference in BBCode. The easiest is to use a URL tag. To point to this Web site, for example, you'd use this: [url][/url]. If you want to display a name instead of the actual URL, use this: [url=]My Tech Learning[/url].
  • There is also special code listing blocks denoted with [code] and [/code]. Within these two tags, all <> symbols are translated into their displayable equivalent (the HTML character entities < and >) so that you can share HTML code with other members of the forum like in tek-tips forums .
  • As in HTML, you can combine multiple tags in a sequence if you want. Just make sure that you always close links from innermost to outermost, just like parentheses in your English writing!


      Anonymous said...

      Great work!
      [url=]My homepage[/url] | [url=]Cool site[/url]

      Anonymous said...

      Well done!
      My homepage | Please visit

      Anonymous said...

      Thank you! |

      Terry said...

      Many thanks Priya.

      Your clear explanation of the difference between HTML and BB coding has helped me post a hyperlink on a forum.

      Many thanks...Terry

      INSERT EXEC failed because the stored procedure altered the schema of the target table.

      This morning I was trying to call a stored procedure and insert the results in a temp table using the following code  -- create table #...