When working with any area of the system that lets you directly edit HTML and CSS code (generally in the content editor when you click the Source.. button), we only support certain tags. Here are all supported HTML tags and their associated attributes + protocols in the CMS. When you click Save after editing content, the CMS content sanitizer strips any tags not found in this list, including script tags. Note that style and class attributes are included for all tags.
Tag | Attributes | Protocols |
a | href, title, target, id, name | ftp, http, https, mailto |
b |
|
|
br |
|
|
blockquote | cite | http, https |
caption |
|
|
cite |
| http, https |
code |
|
|
col | span, width |
|
colgroup | span, width |
|
dd |
|
|
div |
|
|
dl |
|
|
dt |
|
|
em |
|
|
h1 |
|
|
h2 |
|
|
h3 |
|
|
h4 |
|
|
h5 |
|
|
h6 |
|
|
hr |
|
|
i |
|
|
iframe | allowfullscreen, frameborder, height, width, src |
|
img | align, alt, height, src, title, width | http, https, data |
li |
|
|
ol | start, type |
|
p |
|
|
pre |
|
|
q | cite | http, https |
small |
|
|
span |
|
|
strike |
|
|
strong |
|
|
sub |
|
|
sup |
|
|
table | summary, width, border, cellspacing, cellpadding, align |
|
tbody |
|
|
td | abbr, axis, colspan, rowspan, width |
|
tfoot |
|
|
th | abbr, axis, colspan, rowspan, scope, width |
|
thead |
|
|
tr |
|
|
u |
|
|
ul | type |
|
CSS Guidelines
CSS rule sets are scoped to ensure they only affect the associated content. The way they get scoped is that rule-set selectors are prefixed with the name of the content.
Local CSS at-rules are excluded from the above scoping. For now, the only supported local at-rule is @media.
@font-face, @keyframe, @charset, and @document are not supported as these are global at-rules. Using them without special handling may cause conflicts with other components and also override CMS internal at-rules.