BBCODE Test Page

This document uses (almost) all BBCode tags supported by Drupal's BBCode module. You can cut and paste this document into a node to test Drupal's BBCode implementation or to perform some benchmarks.

  1. Normal text formatting
  2. Font colors
  3. Font sizes
  4. Font faces
  5. Text alignment
  6. Images
  7. URL's
  8. E-mail addresses
  9. Headings
  10. Level 1 Heading
    1. Level 2 Heading
      1. Level 3 Heading
        1. Level 4 Heading
  11. Acronyms and abbreviations
  12. Code blocks
  13. Quoting
  14. Lists
  15. Table tags
  16. Other tags
  17. Tag nesting
  18. Test multi-line tags:
  19. Cross site scripting (XSS) vulnerabilities
  20. Broken tags

Normal text formatting

Test bold / strong text
Test italic / emphasised text
Test underlined text
Test strikeout text
Test subscript text - H2O
Test superscript text - X3

Font colors

Test blue text
Test red text
Test green text
Test #eeff00 text

Font sizes

Test 1px - too small, normalized to 6px
Test 12px text
Test 24px text
Test 100px - too big, normalized to 48px

Font faces

Test Arial typeface text
Test Arial typeface text
Test Courier typeface text
Test Courier New typeface text
Test Impact typeface text
Test Helvetica typeface text
Test Times New Roman typeface text
Test Verdana typeface text

Text alignment

Left hand side of the screen

Right hand side of the screen


This paragraph is justified on both sided on the page. By default most browsers render text with a jagged right edge. If you want all text rendered like in a book with an even right edge - use the justify tag.


Normal image:

Align image right:

Image with ALT description:
The Dripal Logo

Re-sized image:

Test URL

Anchor (bookmark you can link to):
URL Anchor

Some URL's within a sentence:;, ( and And some more:, ( and

Google link: BBCode
Wikipedia link: BBCode

E-mail addresses


Level 1 Heading

Level 2 Heading

Level 3 Heading

Level 4 Heading

Acronyms and abbreviations

1 inch


Code blocks

Normal code block:

x := y + z;<br />
y := a - b;

An inline code block

Color highlighted PHP code block:

echo "Sample PHP code";

Test notag:
These BBCode tags are [b]not[/b] converted to HTML!
[size=20]I'm happy[/size]


A simple quote:

This is a quoted message

Quote with source:

Frank wrote:
This is a quoted message

Nested quotes:

Gabor wrote:
This is a quoted message
Alastair wrote:
This is a nested quote


A normal list (circular bullets, same as list=c):

  1. x
  2. y
  3. z

List with discs (list=d):

  1. x
  2. y
  3. z

List with squares (list=s):

  1. x
  2. y
  3. z

Numeric list (list=1):

  1. x
  2. y
  3. z

Roman lowercase list (list=i):

  1. x
  2. y
  3. z

Roman uppercase list (list=I):

  1. x
  2. y
  3. z

Alfa lowercase list (list=a):

  1. x
  2. y
  3. z

Alfa uppercase list (list=A):

  1. x
  2. y
  3. z

A nested list:

  1. x
    1. x.1
    2. x.2
  2. y
  3. z

Table tags

row1col1 row1col2
row2col1 row2col2

Header1 Header2
row1col1 row1col2
row2col1 row2col2

Other tags

Test marquee:
Move tag - creates a scrolling display

Horizontal delimiter:

Force line break:

Force space:
--> <--

Tag nesting

large red text
again - large red test with different tag order

Test multi-line tags:


Cross site scripting (XSS) vulnerabilities

User-entered text with embedded script tags


will be encoded.

Some other exploits:
[size=expression(alert(document.cookie));]Size tag[/size]
[font=expression(alert(document.cookie));]Font tag[/font]
[float=expression(alert(document.cookie));]Float tag[/float]
[url=javascript:alert(document.cookie)]Click here to see cookie[/url]


Broken tags

We need to ensure that bad formating will not disrupt your site's HTML.

Broken [b]bold text...

  1. A broken list...

    A broken quote...

Back to HLURB Website