‎2025 Jun 02 6:18 PM
For all those facing HTML errors when publishing, here is a list of supported HTML tags; restrictions are based on our commitment to security
Default permissions
HTML Tag | Allowed HTML Tag Attributes | Description |
<a> | href, target | Creates a hyperlink |
<b> | none | Bold |
<blockquote> | dir | Creates an indented block of text |
<br> | none | Line break |
<center> | none | Centers text |
<div> | align, class | Surrounds a block of content to be formatted together |
<em> | none | Italicize |
<font> | face, size, color | Controls font size, face and color |
<hr> | none | Horizontal line |
<i> | none | Italics |
<li> | none | List items (used with <ol> or <ul>) |
<ol> |
| Ordered list |
<p> | align | A paragraph of text |
<pre> | none | Pre-formatted text. Typically using a monospace font |
<span> | class | Groups text to be formatted together |
<strike> | none | Strikethrough |
<strong> | none | Bold |
<table> | cellspacing, cellpadding, border, width, height | Table |
<td> | width, height | Table column |
<tr> | width, height | Table row |
<u> | none | Underline |
<ul> |
| Unordered list |
How about inline, will I have unwanted line breaks sneak in?
Let's test multiple scenarios to make sure.
Code snippet
<body class="activity-stream">
<div id="root"></div>
<script
async
type="module"
src="chrome://global/content/elements/moz-toggle.mjs"
></script>
<script
async
type="module"
src="chrome://global/content/elements/moz-button.mjs"
></script>
<script
async
type="module"
src="chrome://global/content/elements/moz-button-group.mjs"
></script>
<script
async
type="module"
src="chrome://global/content/elements/moz-box-button.mjs"
></script>
<script
async
type="module"
src="chrome://global/content/elements/moz-message-bar.mjs"
></script>
<script
async
type="module"
src="chrome://global/content/elements/moz-radio-group.mjs"
></script>
</body>