HomeGuidesRecipesAPI
HomeGuidesAPILog In

HTML in Question Text, Help Text, Labels, and Rich Text Fields

Allowed tags

Designers can include their own HTML styles and content within Question Text, Help Text, Labels and Rich Text Fields. However, as custom HTML can be malicious only certain tags and attributes are permitted.

👍

Note:

The following HTML tags are permitted, however some attributes and attribute values of these tags may be blocked.

<a>
<b>
<blockquote>
<br>
<caption>
<cite>
<code>
<dd>
<div>
<dl>
<dt>
<em>
<font>
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
<hr>
<img>
<li>
<ol>
<p>
<pre>
<span>
<strike>
<strong>
<sub>
<sup>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<tr>
<u>
<ul>

The following attributes are permitted:

alt
aria- *
bgcolor
border
cellspacing
class
color
data- *
dir
download
face
frame
height
href
lang
nowrap
role
rules
size
src
style
summary
target
title
type
valign
width

👍

All aria- and data- attributes are allowed.

Usage

Most SmartIQ Question types allow the inclusion of custom HTML using the option source code displayed with the following icon: < >

996

For example: Add the following code into a Label Text using the source code option

<h1>Title 1</h1>
<h2>Title 2</h2>
<h3>Title 3</h3>
<h4>Title 4</h4>
<h5>Title 5</h5>
<p>Some text here...</p>
<a href="https://www.intelledox.com/">Hyperlink using custom HTML</a>
1573

This custom HTML will be rendered as follows:

3067

Another useful example is implementing HTML Properties, for example Download:

Download Infiniti Logo: <a href="https://www.intelledox.com/wp-content/uploads/2017/10/PNG-IntelledoxInfinitiDesign.png" download="Logo"> Click Here</a>
3828