Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Perl Monks Approved HTML tags

( #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
wbr /

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

Log In?
Username:
Password:

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 musing on the Monastery: (6)
As of 2014-08-23 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls