Tags allowed in WordPress Comments & Posts

There have been some comments on the WP support forum asking what tags are allowed in WP comments.

If you are a user of the editor or author security levels with unfiltered HTML rights, you are technicially allowed to enter any HTML tags.

Otherwise, these are comment tags that are allowed by the filtering engine used by WordPress (KSES):

  • address
  • a
    • href
    • title
    • rel
    • rev
    • name
  • abbr
    • title
  • acronym
    • title
  • b
  • big
  • blockquote
    • cite
  • br
  • button
    • disabled
    • name
    • type
    • value
  • caption
    • align
  • code
  • col
    • align
    • char
    • charoff
    • span
    • valign
    • width
  • del
    • datetime
  • dd
  • div
    • align
  • dl
  • dt
  • em
  • fieldset
  • font
    • color
    • face
    • size
  • form
    • action
    • accept
    • accept-charset
    • enctype
    • method
    • name
    • target
  • h1
    • align
  • h2
    • align
  • h3
    • align
  • h4
    • align
  • h5
    • align
  • h6
    • align
  • hr
    • align
    • noshade
    • size
    • width
  • i
  • img
    • alt
    • align
    • border
    • height
    • hspace
    • longdesc
    • vspace
    • src
    • width
  • ins
    • datetime
    • cite
  • kbd
  • label
    • for
  • legend
    • align
  • li
  • p
    • align
  • pre
    • width
  • q
    • cite
  • s
  • strike
  • strong
  • sub
  • sup
  • table
    • align
    • bgcolor
    • border
    • cellpadding
    • cellspacing
    • rules
    • summary
    • width
  • tbody
    • align
    • char
    • charoff
    • valign
  • td
    • abbr
    • align
    • axis
    • bgcolor
    • char
    • charoff
    • colspan
    • headers
    • height
    • nowrap
    • rowspan
    • scope
    • valign
    • width
  • textarea
    • cols
    • rows
    • disabled
    • name
    • readonly
  • tfoot
    • align
    • char
    • charoff
    • valign
  • th
    • abbr
    • align
    • axis
    • bgcolor
    • char
    • charoff
    • colspan
    • headers
    • height
    • nowrap
    • rowspan
    • scope
    • valign
    • width
  • thead
    • align
    • char
    • charoff
    • valign
  • title
  • tr
    • align
    • bgcolor
    • char
    • charoff
    • valign
  • tt
  • u
  • ul
  • ol
  • var

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *