{"id":10452,"date":"2023-12-22T11:25:18","date_gmt":"2023-12-22T11:25:18","guid":{"rendered":"https:\/\/www.picreel.com\/blog\/?p=10452"},"modified":"2025-10-14T05:47:32","modified_gmt":"2025-10-14T05:47:32","slug":"html-popup","status":"publish","type":"post","link":"https:\/\/www.picreel.com\/blog\/html-popup\/","title":{"rendered":"HTML Popup Message: Quick Methods With Codes &#038; Steps"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Finding it challenging to capture your website visitors\u2019 attention and keep them engaged? The good news is that I have found a solution \u2013 HTML popups. I\u2019ve been using them for years, and they have worked for me. But lately, I wanted them to be more out-of-the-box and interactive.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So, I combined HTML, CSS, and JavaScript, and the results were amazing. I was amazed by how engaging and interactive my popups started looking. The best part? They also helped me grow my email list, achieve an average conversion of around 4%<\/span><span style=\"font-weight: 400;\">,<\/span><span style=\"font-weight: 400;\"> and boost click-through rates.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">But hey, not everyone is a coder, right? If you are one of them, consider switching to a popup builder like Picreel. It is a much simpler and faster option. You can create popups without all the hassles and embed them using a ready-made HTML code.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To help you make an informed choice, I\u2019ve thoroughly explored both methods of creating popups: HTML\/CSS\/Javascript and the Picreel popup builder.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_1_Using_HTMLCSSJavaScript\"><\/span>Method 1: Using HTML\/CSS\/JavaScript<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Here are the steps to build an HTML popup page using HTML, CSS, and JavaScript:<\/p>\n<ul>\n<li>Building the HTML structure<\/li>\n<li>Customizing the popup with CSS<\/li>\n<li>Making the popup interactive with JavaScript<\/li>\n<\/ul>\n<p>A preview of the HTML popup window after running all the codes:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-13920\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2025\/01\/PP_PIC_H1JS1-Using-HTML-website.png\" alt=\"HTML popup window\" width=\"1076\" height=\"657\" \/><\/p>\n<p>Image Source: Picreel<\/p>\n<h3>1. Building the HTML Structure<\/h3>\n<p>To begin with, create the structure of the HTML popup box. Here, you can include the HTML popup message, title, overlay, and close button. Now, as we\u2019ll be using CSS to further style the popup, you must link your HTML and CSS files.<\/p>\n<p><strong>HTML Code (Popup Structure)<\/strong><\/p>\n<div style=\"background: #DFF4FF; padding: 10px;\">\n<p><span style=\"font-weight: 400;\">&lt;!DOCTYPE html&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;html lang=&#8221;en&#8221;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;head&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;title&gt;Popup Example&lt;\/title&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;styles.css&#8221;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;\/head&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;body&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;button id=&#8221;openPopup&#8221;&gt;Open Popup&lt;\/button&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;div id=&#8221;popup&#8221; class=&#8221;hidden&#8221;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;div class=&#8221;popup-content&#8221;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;span id=&#8221;closePopup&#8221; class=&#8221;close&#8221;&gt;&amp;times;&lt;\/span&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;h2&gt;Welcome to Our Website!&lt;\/h2&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;p&gt;Subscribe to our newsletter for updates.&lt;\/p&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;button&gt;Subscribe&lt;\/button&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/div&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;\/div&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0&lt;script src=&#8221;script.js&#8221;&gt;&lt;\/script&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;\/body&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;\/html&gt;<\/span><\/p>\n<\/div>\n<h3>2. Customizing the Popup With CSS<\/h3>\n<p>Next, create a CSS file to define the visuals of your HTML popup alert. Once you have a separate CSS file, start customizing the popup. You can add codes for colors, animations, and dimensions as per your website\u2019s design.<\/p>\n<p><strong>CSS Code (Popup Customization)<\/strong><\/p>\n<div style=\"background: #DFF4FF; padding: 10px;\">\n<p><span style=\"font-weight: 400;\">\/* styles.css *\/<\/span><\/p>\n<p><span style=\"font-weight: 400;\">body {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0font-family: Arial, sans-serif;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0margin: 0;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0padding: 0;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0display: flex;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0justify-content: center;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0align-items: center;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0height: 100vh;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0background-color: #f4f4f9;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">button {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0padding: 10px 20px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0background-color: #007bff;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0color: white;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0border: none;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0border-radius: 5px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0cursor: pointer;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">button:hover {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0background-color: #0056b3;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#popup {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0position: fixed;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0top: 0;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0left: 0;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0width: 100%;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0height: 100%;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0background-color: rgba(0, 0, 0, 0.5);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0display: flex;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0justify-content: center;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0align-items: center;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.popup-content {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0background-color: white;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0padding: 20px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0border-radius: 10px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0width: 300px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0text-align: center;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.hidden {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0display: none;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">.close {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0position: absolute;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0top: 10px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0right: 15px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0font-size: 18px;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0cursor: pointer;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<\/div>\n<h3>3. Making the Popup Interactive With JavaScript<\/h3>\n<p>Now, it\u2019s time to create a JavaScript file to define how your popup will interact with visitors on your website. You can use the event listeners function to control the opening and closing of the HTML\u00a0<a href=\"https:\/\/www.picreel.com\/blog\/how-to-create-popup-forms\/\">popup form<\/a>.<\/p>\n<p><strong>JavaScript Code (Popup Interactivity)<\/strong><\/p>\n<div style=\"background: #DFF4FF; padding: 10px;\">\n<p><span style=\"font-weight: 400;\">\/\/ script.js<\/span><\/p>\n<p><span style=\"font-weight: 400;\">document.getElementById(&#8220;openPopup&#8221;).addEventListener(&#8220;click&#8221;, function() {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0document.getElementById(&#8220;popup&#8221;).classList.remove(&#8220;hidden&#8221;);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">});<\/span><\/p>\n<p><span style=\"font-weight: 400;\">document.getElementById(&#8220;closePopup&#8221;).addEventListener(&#8220;click&#8221;, function() {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0document.getElementById(&#8220;popup&#8221;).classList.add(&#8220;hidden&#8221;);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">});<\/span><\/p>\n<p><span style=\"font-weight: 400;\">window.addEventListener(&#8220;click&#8221;, function(event) {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0const popup = document.getElementById(&#8220;popup&#8221;);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0if (event.target === popup) {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0popup.classList.add(&#8220;hidden&#8221;);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">});<\/span><\/p>\n<\/div>\n<p><em>Note: These codes are just for reference.<\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_2_Using_Picreel_Popup_Builder\"><\/span>Method 2: Using Picreel Popup Builder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">If you want to bypass coding, <\/span><a href=\"https:\/\/www.picreel.com\/\"><span style=\"font-weight: 400;\">Picreel<\/span><\/a><span style=\"font-weight: 400;\"> can help you create a popup in minutes without writing a single line of code.\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">It works across website platforms, offers flexible customization, and integrates with CRM tools for automated email marketing.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s quickly see how to create popup with Picreel in minutes:<\/span><\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/J1tBmOnBJEA?si=u-UJ4bCnaFsX1294\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h3><strong>Step 1: Log In to Your Account<\/strong><\/h3>\n<p>Sign in to your Picreel account. If you don\u2019t have one yet,\u00a0<a href=\"https:\/\/www.picreel.com\/pricing\/\">create your forever-free Picreel account<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13926\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2025\/01\/Group-231225@2x-min.png\" alt=\"Sign in to your Picreel account\" width=\"3406\" height=\"1766\" \/><\/p>\n<h3><strong>Step 2: Start a New Campaign<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Go to the \u201cCampaigns\u201d option and click \u201cNew Campaign\u201d in the top right corner. Also, you can choose the templates option from the drop-down menu or start from scratch.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13927\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2025\/01\/Group-231142@2x.png\" alt=\"New Campaign\" width=\"2626\" height=\"1122\" \/><\/p>\n<h3><strong>Step 3: Select a Popup Template<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">From the <\/span><a href=\"https:\/\/www.picreel.com\/templates\/\"><span style=\"font-weight: 400;\">100+ ready-to-use popup templates<\/span><\/a><span style=\"font-weight: 400;\"> menu, <\/span><span style=\"font-weight: 400;\">choose the type of popup you want to create, such as a spin-to-win, timed discounts, or lead capture form.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13928\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2025\/01\/Group-231155@2x-min.png\" alt=\"choose the type of popup\" width=\"3200\" height=\"1454\" \/><\/p>\n<h3><strong>Step 4: Customize Your Popup Design<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Once you select a template, tailor it to your needs by editing the visuals, text, form fields, and adding strong CTA buttons using Picreel\u2019s campaign builder.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13929\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2025\/01\/Mask-Group-1@2x-min.png\" alt=\"select the design\" width=\"2626\" height=\"1214\" \/><\/p>\n<p><span style=\"font-weight: 400;\">If you\u2019re looking for design inspirations, here are some of my favorite <\/span><a href=\"https:\/\/www.picreel.com\/blog\/popup-designs\/\"><span style=\"font-weight: 400;\">popup designs that convert<\/span><\/a><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<h3><strong>Step 5: Set Targeting and Triggers<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Head to the settings panel to configure when and where your popup appears by adjusting trigger and <\/span><a href=\"https:\/\/www.picreel.com\/features\/popup-targeting\/\"><span style=\"font-weight: 400;\">targeting options<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13930\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2025\/01\/Group-231138@2x.png\" alt=\"popup targeting\" width=\"2626\" height=\"1160\" \/><\/p>\n<p><strong>Customize Popup Timing and Audience:<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Audience Targeting:<\/b><span style=\"font-weight: 400;\"> Show popups to new visitors, loyal customers, or users based on location.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Scheduled Display:<\/b><span style=\"font-weight: 400;\"> Time popups for peak sales seasons, product launches, or holiday promos.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Behavior-Based Triggers:<\/b> <a href=\"https:\/\/www.picreel.com\/features\/popup-triggers\/\"><span style=\"font-weight: 400;\">Trigger popups<\/span><\/a><span style=\"font-weight: 400;\"> on exit intent, scroll depth, or time spent on page.<\/span><\/li>\n<\/ul>\n<h3><strong>Step 6: Optimize for Mobile Devices<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Use Picreel\u2019s <\/span><b>mobile-friendly templates<\/b><span style=\"font-weight: 400;\"> and \u201c<\/span><b>all device<\/b><span style=\"font-weight: 400;\">\u201d <\/span><b>settings<\/b><span style=\"font-weight: 400;\"> to ensure your popups look great on any screen.\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14462 size-large\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2023\/12\/AllDevices-1-1024x413.png\" alt=\" Optimize for Mobile Devices\" width=\"1024\" height=\"413\" \/><\/p>\n<p><span style=\"font-weight: 400;\">With over <\/span><a href=\"https:\/\/www.forbes.com\/advisor\/business\/software\/website-statistics\/\"><span style=\"font-weight: 400;\">54% of website traffic coming from mobile<\/span><\/a><span style=\"font-weight: 400;\">, optimizing for smaller devices is essential.<\/span><\/p>\n<div class=\"content-box\" style=\"max-width: 800px; margin: 40px auto; padding: 30px; background-color: #f9f9f9; border-left: 6px solid #007BFF; border-radius: 8px; font-family: Roboto, sans-serif; box-shadow: 0 4px 8px rgba(0,0,0,0.1); line-height: 1.6; text-align: Left; font-size: 20px;\">\n<p><strong style=\"color: #333;\">Pro Tip:<\/strong> Use thumb-friendly buttons, short copy, and one-click actions to boost mobile conversions.<\/p>\n<\/div>\n<h3><strong>Step 7: Run A\/B Tests to Optimize Performance<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Use Picreel\u2019s built-in <\/span><a href=\"https:\/\/www.picreel.com\/features\/popup-ab-testing\/\"><span style=\"font-weight: 400;\">A\/B testing<\/span><\/a><span style=\"font-weight: 400;\"> feature from the side panel to experiment with different designs, triggers, and targeting settings to see what works best.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14463 size-large\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2023\/12\/ABTest-1024x467.png\" alt=\"Run A\/B Tests to Optimize Performance\" width=\"1024\" height=\"467\" \/><\/p>\n<p><span style=\"font-weight: 400;\">It\u2019s an easy way to boost performance. In fact, <\/span><a href=\"https:\/\/formester.com\/blog\/70-marketing-statistics-in-2024-to-optimize-your-marketing-campaigns\/\"><span style=\"font-weight: 400;\">71% of marketers say A\/B testing is key to increasing conversions<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<div class=\"content-box\" style=\"max-width: 800px; margin: 40px auto; padding: 30px; background-color: #f9f9f9; border-left: 6px solid #007BFF; border-radius: 8px; font-family: Roboto, sans-serif; box-shadow: 0 4px 8px rgba(0,0,0,0.1); line-height: 1.6; text-align: Left; font-size: 20px;\">\n<p><strong style=\"color: #333;\">Pro Tip:<\/strong> Focus on testing one element at a time, such as the headline, CTA, or trigger timing, to get clear, actionable insights. Also, always run tests long enough to reach statistical significance before making changes.<\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Embed_Picreel_HTML_Code\"><\/span>How to Embed Picreel HTML Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Still confused about how to show popups in WordPress or HTML websites? Once your Picreel popup is ready, embed it on your websites and campaigns using these simple steps:<\/p>\n<p><strong>Step 1: Navigate to campaigns and click on \u201cView Code.\u201d<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13931\" src=\"https:\/\/www.picreel.com\/blog\/wp-content\/uploads\/2025\/01\/Mask-Group-349@2x.png\" alt=\"View Code\" width=\"3202\" height=\"688\" \/><\/p>\n<h3>Step 2<span style=\"font-weight: 400;\">: Copy and Paste the Code<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">In the side panel, click on the campaigns section, select your campaign, and copy the code. Next, just paste the code before the closing &lt;\/head&gt; tag in your website\u2019s HTML file.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This will show your Picreel popup on your website exactly where you want it!\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">After launch, check the Picreel <\/span><a href=\"https:\/\/www.picreel.com\/features\/popup-reports-and-analytics\/\"><span style=\"font-weight: 400;\">popup analytics<\/span><\/a><span style=\"font-weight: 400;\"> dashboard for views, CTR, conversions, and form submissions, and then tweak your popup based on the data.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Which_Is_a_Better_Method_HTML_Popups_or_No-Code_Popups\"><\/span><strong>Which Is a Better Method: HTML Popups or No-Code Popups?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Before we wrap up, let\u2019s quickly compare both methods side by side to see which one suits your needs better:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><div id=\"tablepress-241-scroll-wrapper\" class=\"tablepress-scroll-wrapper\">\n\n<table id=\"tablepress-241\" class=\"tablepress tablepress-id-241 tablepress-responsive\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">Criteria<\/th><th class=\"column-2\">Popup with HTML\/CSS\/JavaScript<\/th><th class=\"column-3\">Popup with Picreel<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">Customization<\/td><td class=\"column-2\">\u2705Offers complete control but requires coding skills for advanced designs and functionalities.<\/td><td class=\"column-3\">\u2705Provides an intuitive drag-and-drop editor with pre-built templates for easy customization of layouts, colors, fonts, and styles.<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">Analytics<\/td><td class=\"column-2\">\u274c Does not include built-in analytics; external tools or scripts are required.<\/td><td class=\"column-3\">\u2705Offers built-in analytics and reporting to track popup performance, conversions, and user behavior.<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">Targeting<\/td><td class=\"column-2\">\u274c Requires manual coding or external scripts for basic targeting functionality.<\/td><td class=\"column-3\">\u2705 Includes dynamic targeting options like user behavior, time spent, scroll percentage, or specific pages.<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">Exit-Intent<\/td><td class=\"column-2\">\u274c Needs complex coding to implement exit-intent detection.<\/td><td class=\"column-3\">\u2705 Integrates exit-intent technology to trigger <a href=\"https:\/\/www.picreel.com\/exit-intent-overlays\/\">exit-intent technology<\/a> popups when visitors are about to leave the site.<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">A\/B Testing<\/td><td class=\"column-2\">\u274c Has no built-in A\/B testing; requires third-party tools.<\/td><td class=\"column-3\">\u2705 Supports easy A\/B testing, allowing you to compare different versions of your popups to optimize performance.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<\/div><\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you enjoy coding and want full control, an HTML popup is great, but it takes time and solid skills. If you&#8217;re short on time or tech experience, no-code popup with Picreel is a smart alternative.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can create popups in minutes using ready-made templates, launch them instantly with advanced targeting, and even start free with their <\/span><a href=\"https:\/\/www.picreel.com\/signup\/\"><span style=\"font-weight: 400;\">forever-free plan<\/span><\/a><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I feel the free version works well; however, you can always upgrade to an affordable paid plan to access advanced features. To make an informed decision, consider your marketing goals, coding skills, and the level of sophistication you desire for your popups. Happy popup creation!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finding it challenging to capture your website visitors\u2019 attention and keep them engaged? The good news is that I have found a solution \u2013 HTML popups. I\u2019ve been using them for years, and they have worked for me. But lately, I wanted them to be more out-of-the-box and interactive. So, I combined HTML, CSS, and&#8230;<\/p>\n","protected":false},"author":26,"featured_media":10453,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-10452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-popup"],"_links":{"self":[{"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/posts\/10452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/comments?post=10452"}],"version-history":[{"count":26,"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/posts\/10452\/revisions"}],"predecessor-version":[{"id":11140,"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/posts\/10452\/revisions\/11140"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/media\/10453"}],"wp:attachment":[{"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/media?parent=10452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/categories?post=10452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.picreel.com\/blog\/wp-json\/wp\/v2\/tags?post=10452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}