Page type:
Reference.HTML Reference Guide for Form Creators
Introduction
As a form creator, you can enhance your form questions with HTML formatting in labels and descriptions. This allows you to create more visually engaging and organized forms while maintaining security through our strict content sanitization system. Key Benefits:- Style your questions with rich text formatting
- Add structure with headings and lists
- Include links to external resources
- Apply custom CSS classes and IDs for brand consistency
- Create professional, accessible forms
Security & Sanitization
How We Keep Your Forms Safe
All HTML content you add to your forms is automatically sanitized before rendering. Our system:- Prevents XSS attacks by removing dangerous scripts and event handlers
- Strips harmful attributes like
onclick,onerror, andonload - Blocks unsafe tags such as
<script>,<iframe>, and<object> - Allows only formatting tags that enhance visual presentation
- Preserves safe attributes including
class,id,href, andstyle
Allowed HTML Tags
Text Formatting
<b> and <strong> - Bold textUse for important terms or emphasis.
<i> and <em> - Italic textUse for citations, definitions, or subtle emphasis.
<u> - Underlined textUse sparingly for emphasis.
<mark> - Highlighted textUse to draw attention to specific content.
<small> - Smaller textUse for fine print or supplementary information.
<sup> and <sub> - Superscript and subscriptUse for mathematical notation or footnotes.
Structure & Organization
<p> - ParagraphsSeparate content into readable blocks.
<br> - Line breaksAdd single line breaks within text.
<hr> - Horizontal ruleCreate visual separators.
<div> and <span> - Generic containersGroup content for styling with classes or IDs.
Headings
<h1> through <h6> - Section headingsOrganize content hierarchically.
Lists
<ul> - Unordered (bulleted) lists
<ol> - Ordered (numbered) lists
Links
<a href="..."> - HyperlinksLink to external resources or documentation.
href, target, title, class, id
Code & Preformatted Text
<code> - Inline code
<pre> - Preformatted textPreserves spacing and line breaks.
Tables
<table>, <tr>, <td>, <th> - Data tablesDisplay structured information.
Using Classes and IDs
CSS Classes
Apply custom styling by addingclass attributes to your HTML elements. Classes allow you to maintain consistent branding and visual hierarchy across your forms.
Syntax:
- Brand colors and typography
- Spacing and layout control
- Visual emphasis and highlighting
- Responsive design adjustments
IDs
Useid attributes to uniquely identify specific elements, useful for linking or JavaScript interactions.
Syntax:
- IDs must be unique within the form
- Use descriptive, lowercase names with hyphens
- Avoid starting IDs with numbers
Practical Examples
Example 1: Required Field with Emphasis
Input:Creates a bold required label with an asterisk and explanatory text below.
Example 2: Instruction List
Input:Creates a clear set of instructions with a heading and bulleted list.
Example 3: External Resource Link
Input:Embedded link that opens in a new tab with custom styling.
Example 4: Formatted Description
Input:Well-structured description with context, instructions, and privacy notice.
Example 5: Highlighted Notice
Input:Eye-catching alert box for critical information.
Best Practices
Accessibility
- Use semantic HTML - Use headings, lists, and paragraphs appropriately
- Provide link context - Make link text descriptive (avoid “click here”)
- Add title attributes - Provide additional context for links and abbreviations
- Maintain color contrast - Ensure text is readable against backgrounds
- Structure content logically - Use proper heading hierarchy
Styling Guidelines
- Keep it simple - Don’t over-format your questions
- Be consistent - Use the same classes throughout your form
- Test responsiveness - Ensure formatting works on mobile devices
- Use meaningful class names - Make them descriptive and maintainable
- Prioritize readability - Formatting should enhance, not distract
Content Organization
- Break up long text - Use paragraphs and lists
- Highlight key information - Use bold or mark for important details
- Provide context - Use descriptions to explain what you’re asking
- Include examples - Show respondents what format you expect
- Add helpful links - Reference external resources when needed
Prohibited Elements
For security reasons, the following are automatically removed:<script>tags and JavaScript code<iframe>and embedded content<form>and form input elements<object>,<embed>,<applet>tags- Event handlers (
onclick,onload,onerror, etc.) <style>tags (inline styles viastyleattribute are allowed)<base>tags that could redirect links<meta>tags and other document-level elements
Troubleshooting
My HTML isn’t appearing
Possible causes:- You’re using a prohibited tag that was removed during sanitization
- There’s a syntax error in your HTML (unclosed tags, missing quotes)
- The content exceeds character limits
My classes aren’t styling the content
Possible causes:- The CSS classes aren’t defined in your form’s stylesheet
- Class names have typos or don’t match exactly
- Styles are being overridden by more specific selectors
Links aren’t working
Possible causes:- Missing
http://orhttps://protocol in href - Invalid URL format
- Relative URLs that don’t resolve correctly
Additional Resources
- Contact your form administrator for available CSS classes
- Test your HTML in the form preview before publishing
- Review submitted forms to ensure formatting displays correctly
- Keep a library of commonly used HTML snippets for consistency
Need Help?
If you encounter issues or have questions about HTML formatting in your forms, please contact your system administrator or support team. They can provide information about:- Custom CSS classes available in your organization
- Specific formatting requirements for your forms
- Technical limitations or restrictions
- Training resources for advanced HTML usage