Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl Monk, Perl Meditation.
 
PerlMonks

Perl Monks Approved HTML tags

 | Log in | Create a new user | The Monastery Gates | Super Search | 
 | Seekers of Perl Wisdom | Meditations | PerlMonks Discussion | 
 | Obfuscation | Reviews | Cool Uses For Perl | Perl News | Q&A | Tutorials | 
 | Poetry | Recent Threads | Newest Nodes | Donate | What's New | 

( #29281=superdoc: print w/ replies, xml ) Need Help??

Here is the list of HTML tags and attributes currently allowed on PerlMonks. See PerlMonks Approved Chatter HTML Tags for what is allowed in the chatterbox. Currently home nodes do not have their HTML filtered, but a separate list of allowed HTML for home nodes is being developed.

Tag Attributes
a href, name, target, class, title, rel
abbr title
b (none)
big (none)
blockquote class, cite, lang, dir
br1 /
c2 (none)
caption class
center (none)
code2 (none)
col align, col, span, width, class
colgroup align, col, span, width, class
dd (none)
del class, datetime, cite
div class
dl (none)
dt (none)
em (none)
font1 size, color, class
h11 class, align
h21 class, align
h3 class, align
h4 class, align
h5 class, align
h6 class, align
hr /
i (none)
ins class, datetime, cite
li value
ol type, start
p align, class
pre1 class
readmore3 title
small (none)
span class, title
spoiler4 (none)
strike (none)
strong (none)
sub (none)
sup (none)
table width, cellpadding, cellspacing, border, bgcolor, class
tbody width, align, valign, colspan, rowspan, bgcolor, height, class
td width, align, valign, colspan, rowspan, bgcolor, height, class
tfoot width, align, valign, colspan, rowspan, bgcolor, height, class
th width, align, valign, colspan, rowspan, bgcolor, height, class
thead width, align, valign, colspan, rowspan, bgcolor, height, class
tr width, align, valign, colspan, bgcolor, height, class
tt class
u (none)
ul type

1Although these tags are allowed, use of them is discouraged. In particular, it is usually much better to use <p> and not <br /> and please use <code> instead of <pre> unless the enclosed lines are pretty short.

2Note that <code> and <c> are not really HTML tags at PerlMonks. They prevent enclosed special characters like <, >, &, [, and ] from being interpretted. Also, not even whitespace is allowed inside (< code > will not be recognized) and they must have a matching </code> or </c> for them to work. If the code contains a newline, then it is rendered such that long lines will wrap.

The only string not allowed inside of <code> tags is </code> (though upper- vs. lower-case is ignored). Likewise, the only strings not allowed inside of <c> tags is </c> (again, upper- vs. lower-case is ignored).

3Note that <readmore> is not an HTML tag. The tag becomes a <div class="readmore"> when viewing the node directly (so it can be seen as a slight change in background color behind the surrounded text, depending on how you have CSS set up).

But, when viewing the node as part of some other node (such as a reply seen when viewing a node earlier in the thread or such as a root node seen in The Monastery Gates or in a section display page like Seekers of Perl Wisdom), it replaces the enclosed content with <br />Read more...<br /> where "Read more..." is a link to the node. Clicking that link shows you the node directly which makes the previously hidden content appear.

Also, not even whitespace is allowed inside (< readmore > will not be recognized) and, if there is no closing tag, then the rest of the node is affected.

You can use <code> to display a literal <readmore> (as one would expect, though it previously did not always work).

4Note that <spoiler> is not an HTML tag. It is used for presenting "spoilers" to questions and will be rendered differently according to the users preferences, with the general idea being that a little more work is required to see the content than just viewing a node.

When wrapped in <code> tags the <spoiler> tags will be treated as literal text and not have any special meaning

Login:
Password
remember me
What's my password?
Create A New User

Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
GrandFather
jdporter
atcroft
Khen1950fx
CardinalNumber
toma
herveus
MidLifeXis
Intrepid
ssandv
djp
AndyZaft
Neighbour
travlvac11
As of 2010-09-06 03:30 GMT
Sections?
Seekers of Perl Wisdom
Cool Uses for Perl
Meditations
PerlMonks Discussion
Categorized Q&A
Tutorials
Obfuscated Code
Perl Poetry
Perl News
See About the sections of PerlMonks
Information?
PerlMonks FAQ
Guide to the Monastery
What's New at PerlMonks
Voting/Experience System
Tutorials
Reviews
Library
Perl FAQs
Other Info Sources
Find Nodes?
Nodes You Wrote
Super Search
List Nodes By Users
Newest Nodes
Recently Active Threads
Selected Best Nodes
Best Nodes
Worst Nodes
Saints in our Book
Leftovers?
The St. Larry Wall Shrine
Offering Plate
Awards
Craft
Snippets Section
Code Catacombs
Quests
Editor Requests
Buy PerlMonks Gear
PerlMonks Merchandise
Planet Perl
Perlsphere
Use Perl
Perl.com
Perl 5 Wiki
Perl Jobs
Perl Mongers
Perl Directory
Perl documentation
CPAN
Random Node
Voting Booth?

My favourite poll on PerlMonks is ...

Your first Perl Book - the first one ever
Average number of caffeinated beverages per work day - the poll with the highest participation
My Thoughts on the New Voting/Experience System - the poll with the fewest votes cast
When I grow up, I want to be: - one of the polls with the fewest options
Perl 6 will primarily be: - the first one on Perl6
When I see a poll - one of the many polls about polls
this poll ;-)
yet to come
none - I hate polls. Bah.
some other

Results (95 votes), past polls