|
What is BBCode and how do I use it?
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]http://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=http://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!
Categorized:
Blogs and RSS Feeds
,
HTML and CSS
(Article 3825,
Written by Dave Taylor)
Tagged: Previous: Why doesn't Safari show me favicons any more? Next: How do I rename hundreds of files at once? Subscribe!
but what about video from youtube? Posted by: ariel at May 13, 2007 8:54 PMDear Dave, 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 Posted by: Carl Nelson at June 28, 2007 11:04 PMHello 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. Posted by: craig at November 26, 2007 8:56 PMhow do i get symbols with this code? Posted by: charlotte at June 3, 2008 10:13 AMThank 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. [b][color=red]it wasn´t all but it was enough ![/b][/color] hi dave, hope you understood what my doubt was... please help... thanks.. Posted by: Gucci at January 2, 2010 10:15 AMThank you for your kind information... Posted by: Faraz Nizamani at March 5, 2011 9:48 PMGreat 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! Posted by: Dan at March 21, 2011 10:10 AMCan I adjust the left/right margins of my post in BBCode? If so how is this done? I was going nuts trying to figure out how to put a banner on my signature in a forum. Thanks for info. Posted by: Robert Perez at August 13, 2011 7:10 PMThanks you for taking the time to post this. It took care of my issue. Thanks. Jay Posted by: Jay at October 7, 2011 10:05 AMI have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |