Testing Discussion
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Supported HTML

gracedeneen
Discoverer
0 Likes
264

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. 

  • I noticed that the new design adds a line break before and after each hyperlink. We may be able to design future blog articles in a way that respects this "feature" and does not look too bad, but older blog articles look pretty ragged. Can this "feature" please be turned off?

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>
0 REPLIES 0