This site requires cookies to function and by using this site you are consenting to the acceptance of cookies. To find out more details on how and why we use cookies please view our Privacy Statement. Tick this box to clear this message
Embedding HTML Code | Valid Code
Home Page The members area is for registered users to create and publish their own online  surveys Information on Survey Galaxy
 

Using Embedded HTML Code in Surveys

Using HTML code you can fine tune the look and feel of your surveys, some HTML code is very simple to apply, for example to use HTML to make only part of a sentence bold
 
If you are experienced at coding using HTML you should have no difficulty in including HTML code in your surveys; if you are a novice, providing you are careful and take your time to work up to the more complex code, you should find a lot of HTML coding very easy and intuitive. 

If you have no HTML experience we would urge you to first become familiar with the standard Survey Galaxy features where for example, if you want to change the appearance of your survey, in the first instance, we would recommend that you use the Composer's Style facility to make changes to the survey's fonts and colours.

If you then would like to benefit from using embedded HTML code, we recommend that you start with some small HTML code such as changing text to bold or italic or both bold and italic before working up to slightly more complex code such as including links to other websites such as Survey Galaxy Home Page.  
 
In most cases incorrect code will be ignored or may only have a negative effect on the appearance of the survey but please note that in some cases it can cause a survey to become corrupt.


Supported HTML Code
 

For security reasons code that could be used for malicious purposes, such as Java scripting, is automatically removed by the Survey Galaxy composer.

If you want to benefit from including Java scripting please use the Help Request facility to contact Survey Galaxy support. 

The following is a list of HTML code that is supported as standard and that can be embedded in Survey Galaxy surveys. Please contact us if you want to use any HTML code that is not listed.

Tag On

Tag Off

Definition

<marquee>

</marquee>

Defines scrolling text in a field

<a>

</a>

Defines Anchor text

<b>

</b>

Defines bold text

<br>

</br>

Defines a single line break

<cite>

</cite>

Defines a citation

<div>

</div>

Defines a section in a document

<em>

</em>

Defines emphasized text 

<font>

</font>

Defines font, colour, and size for text

<h1>

</h1>

Defines Level 1 heading

<h2>

</h2>

Defines Level 2 heading

<h3>

</h3>

Defines Level 3 heading

<h4>

</h4>

Defines Level 4 heading

<hr>

</hr>

Defines a horizontal line

<i>

</i>

Defines italic text

<img>

</img>

Defines an image

<kbd>

</kbd>

Defines keyboard text

<ol>

</ol>

Defines an ordered list

<ul>

</ul>

Defines an unordered list

<li>

</li>

Defines a list item

<p>

</p>

Defines a paragraph

<pre>

</pre>

Defines preformatted text

<span>

</span>

Defines a section in a document

<strike>

</strike>

Defines strikethrough text

<style>

</style>

Defines style information for a document

<table>

</table>

Defines a table

<tbody>

</tbody>

Groups the body content in a table

<td>

</td>

Defines a cell in a table

<th>

</th>

Defines a header cell in a table

<thead>

</thead>

Groups the header content in a table

<tr>

</tr>

Defines a row in a table

<u>

</u>

Defines underlined text

 <blink>

 </blink>

Causes text to blink

 <strong>

 </strong>

Defines strong text

 <tt>

 </tt>

Defines teletype text

<code>

</code>

Defines computer code text

<samp>

</samp>

Defines sample computer code

<sub>

</sub>

Defines subscript text

<sup>

</sup>

Defines superscript text


Entering Restricted Code

Please note that if you attempt to enter the <script> tag, for example:


When you attempt to save the item you will receive an 'Invalid Data' error message and the item is not saved.


If you enter other HTML code that is not supported, for example like the '<input type=' that is displayed in the screen shot below:


When the item is saved, the problematic code will be neutralised with the added prefix and suffix '_** Invalid HTML disabled' and displayed as shown below:

 

Note: Any valid HTML code that was entered will be accepted, as the <b>(bold) tag in the above example.


Warning

If you do not want to lose code that you have entered do not remove or modify the warning prefix and suffix '_** Invalid HTML' as doing so will remove the disabled code completely. Please use the Help Request facility to contact Survey Galaxy for advise and further guidance on implementing any disabled code.


HTML examples

To view working examples of HTML you can import from the template library, the template that is titled, 'Samples of Embedded HTML Code'.


Important: Survey Galaxy does not guarantee support in using or resolving queries that relate to embedded HTML. If embedded code causes an error, or does not have the desired effect, we may not be able to fully assist in fixing the code or for providing advise on HTML coding. 


 

 
Embedding HTML Code | Valid Code 12-Oct-2024 16:45