Hypertext Markup Language (HTML) is used in the ArcGIS Online website to customize your content and data. This page outlines the HTML accepted by the HTML sanitizers.
HTML tags and attributes
Below is a table of the supported HTML tags and attributes you can use.
Tag | Attribute |
---|---|
a | href, style |
abbr | title |
article | style |
aside | style |
audio | autoplay, controls, loop, muted, preload |
b, strong, i, em, u, ul, ol, li, tbody, br, hr | |
blockquote | style |
code | style |
dd, dl, dt | style |
del | style |
details | style, open |
div | style, align, aria-label, aria-hidden |
figcaption | style |
figure | style |
font | size, color, style |
footer | style |
h1, h2, h3, h4, h5, h6 | style |
header | style |
img | src, width, height, border, alt, style |
main | style |
mark | style |
nav | style |
p | style |
pre | style |
section | style |
source | media, src, type |
span | style, aria-label, aria-hidden |
sub | style |
summary | style |
sup | style |
table | width, height, cellpadding, cellspacing, border, style |
td, th | height, width, valign, align, colspan, rowspan, nowrap, style |
time | style |
tr | height, valign, align, style |
video | autoplay, controls, height, loop, muted, poster, preload, width |
HTML considerations
Keep the following in mind:
- HTML tags not listed in the table above are not supported and will be filtered out.
- Allowed protocols for href and src are https, tel, and mailto.
- Tags are automatically closed if not closed.
- <>&"s are escaped outside of legal tags if not escaped using <>&".
- UNC links are not supported.
- When an a tag is used, the href target URL always opens in a new browser tab.
CSS properties
The tables below show the supported CSS properties.
Note:
ArcGIS Online only supports inline CSS. The CSS must be defined within the style attribute.
Background properties
Below is a table of the supported background properties.
Properties | ||
---|---|---|
background | background-color | background-position |
background-attachment | background-image | background-repeat |
background-clip | background-origin | background-size |
Border properties
Below is a table of the supported border properties.
Properties | ||
---|---|---|
border | border-image-repeat | border-right-style |
border-bottom | border-image-slice | border-right-width |
border-bottom-color | border-image-source | border-spacing |
border-bottom-left-radius | border-image-width | border-style |
border-bottom-right-radius | border-left | border-top |
border-bottom-style | border-left-color | border-top-color |
border-bottom-width | border-left-style | border-top-left-radius |
border-collapse | border-left-width | border-top-right-radius |
border-color | border-radius | border-top-style |
border-image | border-right | border-top-width |
border-image-outset | border-right-color | border-width |
Box properties
Below is a table of the supported box properties.
Properties | ||
---|---|---|
box-decoration-break | box-sizing | box-suppress |
box-shadow | box-snap |
Break properties
Below is a table of the supported break properties.
Properties | ||
---|---|---|
break-after | break-before | break-inside |
Display properties
Below is a table of the supported display properties.
Properties | |||
---|---|---|---|
display | display-inside | display-list | display-outside |
Flex properties
Below is a table of the supported flex properties.
Properties | |||
---|---|---|---|
flex | flex-direction | flex-grow | flex-wrap |
flex-basis | flex-flow | flex-shrink |
Font properties
Below is a table of the supported font properties.
Properties | ||
---|---|---|
font | font-size-adjust | font-variant-caps |
font-family | font-stretch | font-variant-east-asian |
font-feature-settings | font-style | font-variant-ligatures |
font-kerning | font-synthesis | font-variant-numeric |
font-language-override | font-variant | font-variant-position |
font-size | font-variant-alternates | font-weight |
Grid properties
Below is a table of the supported grid properties.
Properties | ||
---|---|---|
grid | grid-column | grid-row-start |
grid-area | grid-column-end | grid-template |
grid-auto-columns | grid-column-start | grid-template-areas |
grid-auto-flow | grid-row | grid-template-columns |
grid-auto-rows | grid-row-end | grid-template-rows |
Justify properties
Below is a table of the supported justify properties.
Properties | ||
---|---|---|
justify-content | justify-items | justify-self |
List properties
Below is a table of the supported list properties.
Properties | |||
---|---|---|---|
list-style | list-style-image | list-style-position | list-style-type |
Margin properties
Below is a table of the supported margin properties.
Properties | ||
---|---|---|
margin | margin-left | margin-top |
margin-bottom | margin-right |
Padding properties
Below is a table of the supported padding properties.
Properties | ||
---|---|---|
padding | padding-left | padding-top |
padding-bottom | padding-right |
Text properties
Below is a table of the supported text properties.
Properties | |
---|---|
text-align | text-emphasis-style |
text-align-last | text-height |
text-combine-upright | text-indent |
text-decoration | text-justify |
text-decoration-color | text-orientation |
text-decoration-line | text-overflow |
text-decoration-skip | text-shadow |
text-decoration-style | text-space-collapse |
text-emphasis | text-transform |
text-emphasis-color | text-underline-position |
text-emphasis-position | text-wrap |
Word properties
Below is a table of the supported word properties.
Properties | ||
---|---|---|
word-break | word-spacing | word-wrap |
Other properties
Below is a table of other supported CSS properties.
Properties | ||
---|---|---|
align-items | gap | max-width |
align-self | height | min-height |
clear | letter-spacing | min-width |
color | lighting-color | overflow |
color-interpolation-filters | line-height | width |
float | max-height |