HTML tags in text editors and text widgets
You can add HTML tags in the following places:
- Dashboard text widgets, using the HTML Editor
- Text editors, if the HTML Editor is available
The HTML Editor allows for advanced styling and supports most HTML tags. Certain tags, however, aren't supported in the HTML Editor, and such tags are automatically ignored when you save the HTML code. This topic lists the tags supported by each sanitizer enforced by your administrator.
In this topic
Sanitizers
- Legacy sanitizer: Applies less strict rules to HTML tags compared to the new sanitizer. The legacy sanitizer is enabled and enforced by default.
- New sanitizer: Applies stricter rules to HTML tags compared to the legacy sanitizer. These stricter rules are for improving platform security.
Both sanitizers remove HTML tags that don't meet certain specifications or violate security rules for allowed tags and attributes. For more information, go to Enforce legacy sanitizer.
Supported HTML tags with legacy sanitizer enabled
The following is a list of all the supported HTML tags that are allowed in the legacy sanitizer.
- a
- abbr
- article
- b
- big
- blockquote
- br
- button
- center
- cite
- code
- col
- colgroup
- data
- dd
- details
- div
- dl
- dt
- em
- fieldset
- figcaption
- figure
- font
- form
- h1
- h2
- h3
- h4
- h5
- h6
- hr
- i
- img
- input
- label
- legend
- li
- link
- mark
- map
- no-hyperlink
- ol
- option
- p
- pre
- q
- ruby
- rp
- rt
- s
- samp
- section
- select
- small
- span
- strike
- strong
- style
- sub
- summary
- sup
- table
- tbody
- td
- textarea
- tfoot
- th
- thead
- tr
- u
- ul
- var
Supported HTML tags with new sanitizer enabled
The following is a list of all the HTML tags that are allowed in the new sanitizer.
- a
- abbr
- article
- audio
- b
- big
- blockquote
- br
- center
- cite
- code
- col
- colgroup
- data
- dd
- details
- div
- dl
- dt
- em
- fieldset
- figcaption
- figure
- font
- h1
- h2
- h3
- h4
- h5
- h6
- hr
- i
- img
- label
- legend
- li
- mark
- no-hyperlink
- ol
- p
- pre
- q
- ruby
- rp
- rt
- s
- samp
- section
- small
- source
- span
- strike
- strong
- style
- sub
- summary
- sup
- table
- tbody
- td
- th
- thead
- tr
- u
- ul
- var
- video
- wbr
-
Potentially dangerous HTML elements are automatically removed from text attributes when you save the text field. For more information, go to Prevent advanced html features in text dashboard.
- The <style> tag affects only elements in the related text editor area, such as the text widget or attribute.