This article lists every HTML tag, attribute, and CSS property you can use when writing your project's description, along with the domains you can embed content from and the custom classes available for advanced layouts.
Supported HTML Tags
- p
- br
- strong
- b
- em
- i
- u
- strike
- ol - Supported Attributes:
- type
- ul
- li
- a - Supported Attributes:
- href
- target
- img - Supported Attributes:
- alt
- height
- src
- width
- q - Supported Attributes:
- cite
- cite
- abbr
- acronym
- del
- ins
- blockquote
- span
- div - Supported Attributes:
- title
- data-title
- object - Supported Attributes:
- height
- type
- width
- param - Supported Attributes:
- name
- value
- h1
- h2
- iframe - Supported Attributes:
- allowfullscreen
- frameborder
- height
- src (see whitelisted domains for more info)
- type
- width
- h3
- h4
- h5
- h6
- embed - Supported Attributes:
- allowfullscreen
- height
- src
- type
- width
- code
- dd
- dt
- dl
- hr
- table
- tr
- td
- tbody
- pre
- sup
- section
- th
- article
- thead
Supported CSS Properties
most tags support the "Style" attribute that can be used with any of the properties here
- font-family
- font-weight
- font-style
- color
- text-align
- text-indent
- text-decoration
- text-transform
- line-height
- font-size - max font size is 40px (including with relative units)
- padding-left
- border
- border-color
- border-width
- border-radius
- background-color
- width
- min-width
- align
- display
- margin-left
- margin-right
- float
- flex
- flex-wrap
- flex-direction
- align-items
- gap
- aspect-ratio
- object-fit
Supported classes
When those classes are defined using the "class" attribute, they will stay in the final description
- welcome-sub-left
- welcome-sub-right
- covert-list
- body-template-top
- body-template-image-left
- body-template-image-right
- lightbox
- spoiler
- center
- alignleft
- aligncenter
- alignright
- quote-content
- source-quote
- quote-body
- quote-source
- quote-author
- spoiler-wrapper
Whitelisted Domains
Those don't cause a special linkout warning and can be embedded as Iframes/Embeds
- forgecdn.net
- bukkit.org
- youtube.com
- github.com
- patreon.com
- twitter.com
- discord.gg
- google.com
- minecraftforum.net
- battle.net
- wowace.com
- hytale.com
- www.stardewvalley.net
- stardewvalleywiki.com
- smapi.io
- kerbalspaceprogram.com
Supported URL schemas
can be used in "href" attributes
- http
- https
- mailto
Think a URL should be whitelisted? Need a CSS property or HTML attribute not supported here? Send you feedback in the #cf-feedback channel in our authors Discord!