Dave, I read your HTML primer for bloggers, but I’m confused because on the sites I add comments, I have to use something called bbcode, not HTML. What is bbcode and how do I use it?
I haven’t seen many weblogs that require BBCode, I have to say, but there are lots of discussion boards that require postings be written in BBCode rather than HTML. The main reason, as far as I can tell, is so there’s some control over people not adding unauthorized HTML sequences (like including pictures from unaffiliated Web sites) because it doesn’t seem that much easier than HTML when you look at the two.
Be that as it may, there are now a lot of different sites that are BBCode enabled, so let’s have a look at how it works…
The basic difference between BBCode and HTML is that while HTML uses < and > to surround tags, BBCode requires that you use [ and ]. Once you realize that, it’s pretty smooth sailing.
For example, bold text is produced with [b]text to have in bold[/b], while italics is generated with [i] and [/i] and underlining (which is still a bad idea on a Web page, even in BBCode) 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 specify the hexidecimal color equivalent if you’re a purist (that is, use [color=#ccff00]), and text size can be specified as a value of 1..29, where [size=1]1=very small text[/size] and [size=29]29=really big text[/size]. The more modern way to specify these type attributes in the HTML world is to use CSS styles, but that’s another story. 🙂
A surprising number of boards that use BBCode also support special code listing blocks denoted with [code] and [/code]. Within these two tags, all < and > symbols are translated into their displayable equivalent (the HTML character entities < and >) so that you can share HTML code with other board members.
On sites that allow links to be created, there are two ways you can produce a hypertext reference in BBCode. The easiest is to tell the system that you’re entering a Web site address — a URL — and that you want it clickable. To point to this Web site, for example, you’d use this: [url]https://www.askdavetaylor.com/[/url]. If you want to get a bit more fancy and have a few words that are clickable, then you need to separate the clickable words from the URL of the target site, as with regular HTML. To have the words “Dave Knows” link to this site, use this: [url=https://www.askdavetaylor.com/]Dave Knows[/url].
Finally, a small number of sites will let you include images using the [img] tag. It’s completely analogous to the simpler of the URL forms shown earlier, and linking to, say, the cheery Yahoo Instant Messenger graphic on their home page can be accomplished with: [img]http://us.i1.yimg.com/us.yimg.com/i/ww/bt1/msg.gif[/img]. By the way, just because you can include a graphic doesn’t mean you should or are allowed to…
That’s about it for the BBCode language. You can combine multiple tags in a sequence if you want blue, bold, URLs, for example (you’d use [color=blue][b][url]the URL[/url][/b][/color]). Just make sure that you always close links from innermost to outermost, just like parentheses in your writing!
Hope that helps you figure out how to use BBCode to its fullest!
The information was really helpful, thank you.
Thank you so much for the detail explanation. I was searching to know more about BB code and got this great article from google search. Thanks for nice work.
Thanks Sir What an great idea
Is this bbcode is only used for forum purpose or any other commercial purpose. Kindly any one guide, i want to know more about that code.
Thanks for a simple and well written guide!! Much appreciated!!
Taylor,
I need to Reduce the Buttton Size in BBcode but as of Now i’m using the Code like follows
[div class=”wm-button”]askdevtaylor[/div]
but it’s getting same constant size for any word / Sentence. I need to Reduce the Length of the button.Could you please help me out.I’m New Techie to this BBCode
To answer the above two references in the top of the Reply Box there is a little icon that looks like a Movie Director snap board to start and stop sequences. Use it to insert your video links.
Now if you are in the Quick Reply mode it is not the. So make sure you use the Reply mode.
Dave,
I would like to use the Post in a Thread to make a Response Form using BBCode.
I see it as the only way since most Forums dont let you into the cPanel or access to files for the Forum.
I wouldl ike to know how to write that line of BBCode to make it work.
Any ideas on this?
This was very helpful, Dave. [b]Thank you[/b]
A great tutorial how to use BBcodes for newbies. I am sure that this article will help a lot of people understand the basics on BBcodes. Congrats for the great post and please keep writing interesting articles. Thank you 🙂
[color=blue] thanks @dave it really works[/color]
Thanks you for taking the time to post this. It took care of my issue. Thanks.
Jay
I was going nuts trying to figure out how to put a banner on my signature in a forum. Thanks for info.
Can I adjust the left/right margins of my post in BBCode? If so how is this done?
Regards
Great information about writing bb code. I did not know how to change the colors or bold or anything. Then after reading this page I was like, oh bold it the same way you would HTML, duh! lol Thanks so much for this information, I bookmarked your page!
Thank you for your kind information…
hi dave,
i have one doubt, can i change the font using bbcode. here i am not talking about changing the size instead i would like to change the font style.
hope you understood what my doubt was…
please help… thanks..
[b][color=red]it wasn´t all but it was enough ![/b][/color]
thanks
[b]God[/b]bless you
Thank you so much for this. I just made an account on Gaia Online and it required this BBCode and I was really confused as to what it was. I’m so used to HTML that this was just a different language… Now that I see the similarity, I just feel stupid haha.
Thanks again!
-Corrina
how do i get symbols with this code?
Hello Dave. Thanks for the description on BBCode.
I was wondering if you could answer another question on this…
How do you set up the page to use this code? In other words, what do you need to put on the page in addition to the tags?
I don’t know anything about programming, except that with html you put at the top and at the bottom, with the tags and content in between. Is there anything equivalent to that tag at the top and bottom in BBCode?
I am trying to post a message to a site that requires BBCode, but when I use the BBCode tags, it doesn’t work. Nothing works, and I just get this text all bunched together, and I can’t figure out how to use the code so I can have line breaks etc.
Any advice would be welcomed.
Dear Dave,
The BBCODe for posting YouTube and Google Videos does not work on the forums I frequent.
I can post YouTube videos by using the following format:
[flash width=425 height=350]http://www.youtube.com/v/KaZLgEnka8w[/flash]
but this does not work for GoogleVideo or LiveVideo.
Do you know what WILL work for those?
Thanks,
Carl Nelson
but what about video from youtube?