Supported HTML

Your Survey Design

You can’t format surveys using HTML, but you can use the rich text editor to format text, add images or videos, or hyperlink text.

We used to offer HTML formatting in our old design tool, so you might see HTML in some of your existing surveys if you’ve been a SurveyMonkey customer for awhile. But please be aware: if you edit a question that contains HTML, only some HTML tags are supported when you save your changes.

Supported Tags

If you edit a question containing existing HTML, only the following tags are supported when you save your changes. We’ll show you a warning message if your text contains unsupported tags. Any tags that are not included in the list below will be stripped from the question when you click Save. Click Cancel to keep your original, custom question formatting.

TagDescription
aAnchor or link. Also allows href and target attributes.
b, strongBold
bigLarger font
brLine break
captionTable caption
centerCentered paragraph
codeCode/typewrite font
colA column within a colgroup element. Also allows the span attribute.
colgroupA group of one or more columns
divDocument division
i, emItalics
fontSize, family, and/or color
imgImage. Also allows alt and src attributes.
liList item
olOrdered list
pParagraph
prePreformatted text
smallSmall font
spanGrouped elements
subSubscript
supSuperscript
tableTable
tbodyTable body
theadTable header
tfootTable footer
tdStandard cell. Also allows colspan and rowspan attributes.
thHeader cell. Also allows colspan and rowspan attributes.
trTable row
uUnderline
ulUnordered list

 

Supported Attributes

All supported tags allow the following attributes:

  • align (left, right, center, justify)
  • color
  • height
  • title
  • width
  • style
Supported Properties for the Style Attribute

The style attribute allows the following properties:

  • background, background-color, background-image, background-position, background-repeat
  • border, border-bottom, border-left, border-right, border-top, border-color, border-style, border-width
  • color
  • font, font-family, font-size, font-style, font-weight
  • height
  • line-height
  • letter-spacing
  • list-style
  • margin, margin-bottom, margin-left, margin-right, margin-top
  • padding, padding-bottom, padding-left, padding-right, padding-top
  • text-align, text-decoration, text-indent, text-shadow, text-transform
  • vertical-align
  • width

Other Survey Pages

You can use some HTML in some areas of your survey:

FieldHTML allowed
Email InvitationThe Custom HTML message format allows all HTML.
Custom Thank YouThis field allows simple HTML, so you can bold, underline, and italicize text.
Custom DisqualificationThis field allows simple HTML, so you can bold, underline, and italicize text.
Survey Closed MessageThis displays if a collector meets the Cutoff Date and Time, Response Limit, or you manually close a collector. The field allows simple HTML, so you can bold, underline, and italicize text.
If you need to edit a question in New Design that contains existing HTML added in Classic Design, unsupported HTML will be stripped from the question when you save your changes.

Get answers