Valid HTML Tags
Problem
FBML sounds great, but sometimes I just want to use good ole HTML. What can I get past the parser?
Solution
There’s actually quite a lot of standard HTML you can use inside an FBML page. Keep an eye on the Wiki for an up-to-date list (http://wiki.developers.facebook.com/index.php/FBML), but this should give you a good idea:
a | code | h2 | legend | script | textarea |
abbr | dd | h3 | li | select | tfoot |
acronym | del | h4 | link | small | th |
address | dfn | h5 | meta | span | thead |
b | div | h6 | old | strike | tr |
bdo | dl | hr | optgroup | strong | tt |
big | dt | i | option | style | u |
blockquote | em | img | p | sub | ul |
br | fieldset | input | pre | sup | var |
caption | font | ins | q | table | |
center | form | kbd | s | tbody | |
cite | h1 | label | samp | td |
Discussion
You’ll note that head
and
body
aren’t included as valid tags,
because you shouldn’t include them in Canvas pages. This may go
against everything you know when it comes to building valid HTML
pages, but you’ll actually get an error if you include them.
Get Facebook Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.