{"id":11382,"date":"2026-01-29T00:00:00","date_gmt":"2026-01-29T00:00:00","guid":{"rendered":"https:\/\/yoursite.com\/?p=91"},"modified":"2026-02-22T22:19:14","modified_gmt":"2026-02-22T22:19:14","slug":"add-custom-html-content-wordpress-forms","status":"publish","type":"post","link":"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/","title":{"rendered":"How to Add Custom HTML Content in WordPress Forms","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Forms aren&#8217;t just input fields. Sometimes you need to explain something, divide sections, show an image, or add context between questions. Custom HTML content transforms static forms into guided experiences. Here&#8217;s how to add rich content to your WordPress forms.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-box-title\">IN THIS ARTICLE<\/div>\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\"><\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#What_Is_the_HTML_Block\" >What Is the HTML Block?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Why_Use_HTML_Blocks\" >Why Use HTML Blocks?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Adding_an_HTML_Block\" >Adding an HTML Block<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Common_HTML_Block_Uses\" >Common HTML Block Uses<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Form_Layout_Examples\" >Form Layout Examples<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Styling_HTML_Blocks\" >Styling HTML Blocks<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Responsive_Design_Tips\" >Responsive Design Tips<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Best_Practices\" >Best Practices<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Advanced_HTML_Block_Ideas\" >Advanced HTML Block Ideas<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Security_Considerations\" >Security Considerations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Troubleshooting\" >Troubleshooting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Summary\" >Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/autoformbuilder.com\/add-custom-html-content-wordpress-forms\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_Is_the_HTML_Block\"><\/span>What Is the HTML Block?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Definition<\/h3>\n<p>The HTML Block is a special form element that displays content without collecting input. It renders HTML between your form fields, allowing you to add text, images, videos, dividers, and more.<\/p>\n<h3>HTML Block vs Regular Fields<\/h3>\n<table>\n<tbody>\n<tr>\n<th>Regular Fields<\/th>\n<th>HTML Block<\/th>\n<\/tr>\n<tr>\n<td>Collect user input<\/td>\n<td>Display content only<\/td>\n<\/tr>\n<tr>\n<td>Submit data<\/td>\n<td>No data submitted<\/td>\n<\/tr>\n<tr>\n<td>Predefined types<\/td>\n<td>Any HTML content<\/td>\n<\/tr>\n<tr>\n<td>Standard styling<\/td>\n<td>Custom styling possible<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"Why_Use_HTML_Blocks\"><\/span>Why Use HTML Blocks?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>1. Instructions and Guidance<\/h3>\n<p>Help users understand what to do:<\/p>\n<ul>\n<li>Explain complex questions<\/li>\n<li>Provide context<\/li>\n<li>List requirements<\/li>\n<li>Guide through sections<\/li>\n<\/ul>\n<h3>2. Visual Organization<\/h3>\n<p>Break up long forms:<\/p>\n<ul>\n<li>Section headings<\/li>\n<li>Horizontal dividers<\/li>\n<li>Visual separators<\/li>\n<li>Grouped content<\/li>\n<\/ul>\n<h3>3. Rich Media<\/h3>\n<p>Add visual elements:<\/p>\n<ul>\n<li>Images and icons<\/li>\n<li>Embedded videos<\/li>\n<li>Infographics<\/li>\n<li>Diagrams<\/li>\n<\/ul>\n<h3>4. Legal and Compliance<\/h3>\n<p>Display important information:<\/p>\n<ul>\n<li>Terms and conditions text<\/li>\n<li>Privacy notices<\/li>\n<li>Disclaimers<\/li>\n<li>Required disclosures<\/li>\n<\/ul>\n<h3>5. Branding<\/h3>\n<p>Reinforce your brand:<\/p>\n<ul>\n<li>Logos<\/li>\n<li>Brand colors<\/li>\n<li>Custom styling<\/li>\n<li>Consistent look<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Adding_an_HTML_Block\"><\/span>Adding an HTML Block<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Step 1: Add the Field<\/h3>\n<ol>\n<li>Open your form in <strong>AFB<\/strong><\/li>\n<li>Find <strong>HTML Block<\/strong> in the field list<\/li>\n<li>Drag it to desired position in your form<\/li>\n<\/ol>\n<h3>Step 2: Add Your Content<\/h3>\n<ol>\n<li>Click the HTML Block to select it<\/li>\n<li>Open settings panel<\/li>\n<li>Enter your HTML content<\/li>\n<li>Preview to verify appearance<\/li>\n<\/ol>\n<h3>Step 3: Position and Style<\/h3>\n<ol>\n<li>Drag to reorder if needed<\/li>\n<li>Add inline styles or classes<\/li>\n<li>Test on frontend<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Common_HTML_Block_Uses\"><\/span>Common HTML Block Uses<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>1. Section Headings<\/h3>\n<pre>&lt;h3&gt;Personal Information&lt;\/h3&gt;\r\n&lt;p&gt;Please provide your contact details below.&lt;\/p&gt;\r\n<\/pre>\n<p><strong>Result:<\/strong><\/p>\n<p><strong style=\"font-size: 1.2em;\">Personal Information<\/strong><br \/>\nPlease provide your contact details below.<\/p>\n<h3>2. Horizontal Divider<\/h3>\n<pre>&lt;hr style=\"margin: 20px 0; border-top: 1px solid #ddd;\"&gt;\r\n<\/pre>\n<p><strong>Result:<\/strong> A clean line separating sections.<\/p>\n<h3>3. Instruction Box<\/h3>\n<pre>&lt;div style=\"background: #f0f7ff; padding: 15px; border-radius: 5px; border-left: 4px solid #0073aa;\"&gt;\r\n  &lt;strong&gt;Important:&lt;\/strong&gt; Please have your order number ready before proceeding.\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3>4. Bulleted Instructions<\/h3>\n<pre>&lt;p&gt;&lt;strong&gt;Before submitting, please ensure:&lt;\/strong&gt;&lt;\/p&gt;\r\n&lt;ul&gt;\r\n  &lt;li&gt;All required fields are completed&lt;\/li&gt;\r\n  &lt;li&gt;Your email address is correct&lt;\/li&gt;\r\n  &lt;li&gt;You've reviewed the terms below&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n<\/pre>\n<h3>5. Image<\/h3>\n<pre>&lt;img src=\"https:\/\/yoursite.com\/wp-content\/uploads\/diagram.png\" \r\n     alt=\"Process diagram\" \r\n     style=\"max-width: 100%; height: auto;\"&gt;\r\n<\/pre>\n<h3>6. Embedded Video<\/h3>\n<pre>&lt;div style=\"position: relative; padding-bottom: 56.25%; height: 0;\"&gt;\r\n  &lt;iframe src=\"https:\/\/www.youtube.com\/embed\/VIDEO_ID\" \r\n          style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\" \r\n          frameborder=\"0\" \r\n          allowfullscreen&gt;&lt;\/iframe&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3>7. Warning\/Alert Box<\/h3>\n<pre>&lt;div style=\"background: #fff3cd; padding: 15px; border-radius: 5px; border: 1px solid #ffc107;\"&gt;\r\n  \u26a0\ufe0f &lt;strong&gt;Warning:&lt;\/strong&gt; Submissions cannot be edited after sending.\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3>8. Success\/Info Box<\/h3>\n<pre>&lt;div style=\"background: #d4edda; padding: 15px; border-radius: 5px; border: 1px solid #28a745;\"&gt;\r\n  \u2713 Your progress is automatically saved.\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3>9. Privacy Notice<\/h3>\n<pre>&lt;p style=\"font-size: 12px; color: #666;\"&gt;\r\n  Your information is protected under our \r\n  &lt;a href=\"\/privacy-policy\" target=\"_blank\"&gt;Privacy Policy&lt;\/a&gt;. \r\n  We will never share your data with third parties.\r\n&lt;\/p&gt;\r\n<\/pre>\n<h3>10. Terms and Conditions Summary<\/h3>\n<pre>&lt;div style=\"max-height: 150px; overflow-y: auto; padding: 10px; border: 1px solid #ddd; font-size: 12px;\"&gt;\r\n  &lt;h4&gt;Terms of Service&lt;\/h4&gt;\r\n  &lt;p&gt;By submitting this form, you agree to...&lt;\/p&gt;\r\n  &lt;!-- More terms content --&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Form_Layout_Examples\"><\/span>Form Layout Examples<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Multi-Section Form<\/h3>\n<pre>[HTML Block: Section 1 - Personal Info heading]\r\nName field\r\nEmail field\r\nPhone field\r\n\r\n[HTML Block: Divider]\r\n\r\n[HTML Block: Section 2 - Project Details heading]\r\nProject type dropdown\r\nDescription textarea\r\nBudget field\r\n\r\n[HTML Block: Divider]\r\n\r\n[HTML Block: Section 3 - Final Steps heading]\r\nFile upload\r\nTerms checkbox\r\nSubmit button\r\n<\/pre>\n<h3>Instructional Form<\/h3>\n<pre>[HTML Block: Welcome message and instructions]\r\n\r\n[HTML Block: Step 1 indicator]\r\nQuestion 1\r\nQuestion 2\r\n\r\n[HTML Block: Step 2 indicator]\r\nQuestion 3\r\nQuestion 4\r\n\r\n[HTML Block: Review reminder]\r\nSubmit button\r\n<\/pre>\n<h3>Application Form<\/h3>\n<pre>[HTML Block: Company logo]\r\n[HTML Block: Position title and description]\r\n\r\nName field\r\nEmail field\r\n\r\n[HTML Block: \"Upload your resume\" instruction with format requirements]\r\nFile upload field\r\n\r\n[HTML Block: Equal opportunity statement]\r\nSubmit button\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Styling_HTML_Blocks\"><\/span>Styling HTML Blocks<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Inline Styles<\/h3>\n<p>Add styles directly to elements:<\/p>\n<pre>&lt;p style=\"color: #333; font-size: 16px; line-height: 1.6;\"&gt;\r\n  Your styled content here.\r\n&lt;\/p&gt;\r\n<\/pre>\n<h3>Common Style Properties<\/h3>\n<pre>Background: background: #f5f5f5;\r\nPadding: padding: 15px;\r\nMargin: margin: 20px 0;\r\nBorder: border: 1px solid #ddd;\r\nBorder radius: border-radius: 5px;\r\nFont size: font-size: 14px;\r\nColor: color: #333;\r\nText align: text-align: center;\r\n<\/pre>\n<h3>Creating Styled Boxes<\/h3>\n<p><strong>Info Box (Blue):<\/strong><\/p>\n<pre>&lt;div style=\"background: #e7f3ff; padding: 15px; border-left: 4px solid #2196F3; margin: 15px 0;\"&gt;\r\n  \u2139\ufe0f Information message here\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><strong>Success Box (Green):<\/strong><\/p>\n<pre>&lt;div style=\"background: #e8f5e9; padding: 15px; border-left: 4px solid #4CAF50; margin: 15px 0;\"&gt;\r\n  \u2713 Success message here\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><strong>Warning Box (Yellow):<\/strong><\/p>\n<pre>&lt;div style=\"background: #fff8e1; padding: 15px; border-left: 4px solid #FFC107; margin: 15px 0;\"&gt;\r\n  \u26a0\ufe0f Warning message here\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><strong>Error Box (Red):<\/strong><\/p>\n<pre>&lt;div style=\"background: #ffebee; padding: 15px; border-left: 4px solid #f44336; margin: 15px 0;\"&gt;\r\n  \u2715 Error or important alert here\r\n&lt;\/div&gt;\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Responsive_Design_Tips\"><\/span>Responsive Design Tips<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Images<\/h3>\n<p>Always use max-width for responsive images:<\/p>\n<pre>&lt;img src=\"image.jpg\" style=\"max-width: 100%; height: auto;\"&gt;\r\n<\/pre>\n<h3>Videos<\/h3>\n<p>Use responsive wrapper for embedded videos:<\/p>\n<pre>&lt;div style=\"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;\"&gt;\r\n  &lt;iframe ... style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\"&gt;&lt;\/iframe&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3>Text Readability<\/h3>\n<ul>\n<li>Use relative font sizes (em, rem)<\/li>\n<li>Keep line lengths readable<\/li>\n<li>Adequate padding on mobile<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Best_Practices\"><\/span>Best Practices<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>1. Keep It Concise<\/h3>\n<ul>\n<li>Short, scannable text<\/li>\n<li>Bullet points over paragraphs<\/li>\n<li>Only essential information<\/li>\n<\/ul>\n<h3>2. Visual Hierarchy<\/h3>\n<ul>\n<li>Clear headings<\/li>\n<li>Consistent styling<\/li>\n<li>Logical flow<\/li>\n<\/ul>\n<h3>3. Accessibility<\/h3>\n<ul>\n<li>Alt text for images<\/li>\n<li>Sufficient color contrast<\/li>\n<li>Semantic HTML (h2, h3, p, ul)<\/li>\n<li>Don&#8217;t rely only on color for meaning<\/li>\n<\/ul>\n<h3>4. Don&#8217;t Overdo It<\/h3>\n<ul>\n<li>Too much content overwhelms<\/li>\n<li>Balance content with input fields<\/li>\n<li>Purpose for every HTML block<\/li>\n<\/ul>\n<h3>5. Test Thoroughly<\/h3>\n<ul>\n<li>Preview on desktop and mobile<\/li>\n<li>Check all links work<\/li>\n<li>Verify images load<\/li>\n<li>Test in different browsers<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Advanced_HTML_Block_Ideas\"><\/span>Advanced HTML Block Ideas<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>Progress Indicator<\/h3>\n<pre>&lt;div style=\"text-align: center; margin: 20px 0;\"&gt;\r\n  &lt;span style=\"display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: #4CAF50; color: white; line-height: 30px;\"&gt;1&lt;\/span&gt;\r\n  &lt;span style=\"display: inline-block; width: 50px; height: 2px; background: #4CAF50; vertical-align: middle;\"&gt;&lt;\/span&gt;\r\n  &lt;span style=\"display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: #2196F3; color: white; line-height: 30px;\"&gt;2&lt;\/span&gt;\r\n  &lt;span style=\"display: inline-block; width: 50px; height: 2px; background: #ddd; vertical-align: middle;\"&gt;&lt;\/span&gt;\r\n  &lt;span style=\"display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: #ddd; color: #666; line-height: 30px;\"&gt;3&lt;\/span&gt;\r\n&lt;\/div&gt;\r\n&lt;p style=\"text-align: center;\"&gt;Step 2 of 3: Project Details&lt;\/p&gt;\r\n<\/pre>\n<h3>Two-Column Layout<\/h3>\n<pre>&lt;div style=\"display: flex; gap: 20px; flex-wrap: wrap;\"&gt;\r\n  &lt;div style=\"flex: 1; min-width: 200px;\"&gt;\r\n    &lt;h4&gt;Option A&lt;\/h4&gt;\r\n    &lt;p&gt;Description of option A...&lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div style=\"flex: 1; min-width: 200px;\"&gt;\r\n    &lt;h4&gt;Option B&lt;\/h4&gt;\r\n    &lt;p&gt;Description of option B...&lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<h3>Collapsible Section (Details\/Summary)<\/h3>\n<pre>&lt;details&gt;\r\n  &lt;summary style=\"cursor: pointer; font-weight: bold;\"&gt;Click to read full terms&lt;\/summary&gt;\r\n  &lt;div style=\"padding: 10px; margin-top: 10px; background: #f9f9f9;\"&gt;\r\n    &lt;p&gt;Full terms and conditions text here...&lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/details&gt;\r\n<\/pre>\n<h3>Icon List<\/h3>\n<pre>&lt;ul style=\"list-style: none; padding: 0;\"&gt;\r\n  &lt;li style=\"padding: 5px 0;\"&gt;\u2713 Free shipping on orders over $50&lt;\/li&gt;\r\n  &lt;li style=\"padding: 5px 0;\"&gt;\u2713 30-day money-back guarantee&lt;\/li&gt;\r\n  &lt;li style=\"padding: 5px 0;\"&gt;\u2713 24\/7 customer support&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n<\/pre>\n<h3>Countdown\/Urgency<\/h3>\n<pre>&lt;div style=\"background: #ff5722; color: white; padding: 10px; text-align: center; border-radius: 5px;\"&gt;\r\n  \ud83d\udd25 Limited Time Offer - Submit by Friday to qualify!\r\n&lt;\/div&gt;\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Security_Considerations\"><\/span>Security Considerations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>What&#8217;s Safe<\/h3>\n<ul>\n<li>Standard HTML tags (p, div, h1-h6, ul, li, etc.)<\/li>\n<li>Inline styles<\/li>\n<li>Images from trusted sources<\/li>\n<li>Embedded videos from major platforms<\/li>\n<\/ul>\n<h3>What to Avoid<\/h3>\n<ul>\n<li>JavaScript in HTML blocks (may be stripped)<\/li>\n<li>External scripts<\/li>\n<li>Untrusted iframe sources<\/li>\n<li>Form elements inside HTML blocks<\/li>\n<\/ul>\n<h3>Note on Script Restrictions<\/h3>\n<p>Most form builders sanitize HTML to prevent XSS attacks. JavaScript and certain tags may be removed automatically for security.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Troubleshooting\"><\/span>Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3>HTML Not Rendering<\/h3>\n<ul>\n<li>Check for syntax errors<\/li>\n<li>Verify tags are properly closed<\/li>\n<li>Some tags may be restricted<\/li>\n<\/ul>\n<h3>Styling Not Applied<\/h3>\n<ul>\n<li>Check inline style syntax<\/li>\n<li>Theme CSS may override<\/li>\n<li>Use more specific styles or !important<\/li>\n<\/ul>\n<h3>Images Not Showing<\/h3>\n<ul>\n<li>Verify image URL is correct<\/li>\n<li>Check image permissions<\/li>\n<li>Use full URL (https:\/\/&#8230;)<\/li>\n<\/ul>\n<h3>Layout Breaking on Mobile<\/h3>\n<ul>\n<li>Add max-width: 100% to images<\/li>\n<li>Use flexible layouts (flexbox)<\/li>\n<li>Test on actual mobile device<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Adding custom HTML content to forms:<\/p>\n<ol>\n<li><strong>Add HTML Block<\/strong> \u2013 Drag to your form<\/li>\n<li><strong>Enter content<\/strong> \u2013 HTML in settings panel<\/li>\n<li><strong>Position appropriately<\/strong> \u2013 Between relevant fields<\/li>\n<li><strong>Style as needed<\/strong> \u2013 Inline styles or classes<\/li>\n<li><strong>Keep accessible<\/strong> \u2013 Alt text, contrast, semantic HTML<\/li>\n<li><strong>Test responsively<\/strong> \u2013 Desktop and mobile<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>HTML blocks transform forms from simple questionnaires into guided experiences. Add context where users need it, organize long forms into logical sections, and include rich media to engage and inform. Whether it&#8217;s a section heading, instruction box, or embedded video, custom HTML content makes your forms more effective and user-friendly.<\/p>\n<p><strong>Auto Form Builder<\/strong> includes the HTML Block field type, letting you add any HTML content between your form fields. Create professional, informative forms that guide users through the submission process.<\/p>\n<p><strong>Ready to enhance your forms?<\/strong> <a href=\"https:\/\/wordpress.org\/plugins\/auto-form-builder\/\" target=\"_blank\" rel=\"noopener\">Download Auto Form Builder<\/a> and start adding custom content today.<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>Learn how to add custom HTML content to WordPress forms. Insert instructions, headings, dividers, images, and rich content between form fields.<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":11533,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[302,172,301,303,304,21],"class_list":["post-11382","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-custom-content","tag-form-design","tag-html-block","tag-instructions","tag-rich-content","tag-wordpress-forms"],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/posts\/11382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/comments?post=11382"}],"version-history":[{"count":1,"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/posts\/11382\/revisions"}],"predecessor-version":[{"id":11534,"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/posts\/11382\/revisions\/11534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/media\/11533"}],"wp:attachment":[{"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/media?parent=11382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/categories?post=11382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/autoformbuilder.com\/wp-json\/wp\/v2\/tags?post=11382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}