Sub topic 3
Inline forms, pop-ups, slide-ins, and bars
This chapter assumes you know basic HTML, have seen a form element, and understand that an email service provider (ESP) stores subscribers and sends campaigns. You will learn the four common sign-up placements, what each is good at, and how to choose one for a given page.
The four placements
A placement is where and how the sign-up form appears on a page. The right choice depends on how much attention the visitor has given you and how much interruption the page can tolerate.
| Placement | How it appears | Strength | Main risk |
|---|---|---|---|
| Inline form | Part of the page content, such as the end of an article or a sidebar | Never blocks reading, easy to make accessible | Visitors who do not scroll never see it |
| Pop-up (modal) | Overlay that dims the page and takes focus | Hard to miss, usually the highest conversion rate | Interrupts the visitor, can annoy them |
| Slide-in | A small box that slides in from a corner | Visible but leaves the content readable | Can cover content on small screens |
| Bar | A strip fixed to the top or bottom edge | Always present, takes little space | Easy to ignore, can crowd mobile layouts |
Inline forms
An inline form sits in the normal flow of the page. Typical spots are the end of a blog post, the footer, and a dedicated landing page. Visitors who reach the end of an article have just shown interest, so a form there reaches people who are already engaged.
Inline forms need no overlay logic. You write plain HTML and style it like the rest of the page, as in the form from the HTML chapter. They are the best default because they cannot trap a visitor or break the page on a phone.
Pop-ups
A pop-up is a modal overlay. Modal means the rest of the page is unavailable until the visitor responds. The native dialog element gives you this behavior, including focus handling and closing with the Escape key, without a library.
<dialog id="signup-dialog" aria-labelledby="signup-title">
<h2 id="signup-title">Get the free checklist</h2>
<form action="https://example.com/subscribe" method="post">
<label for="popup-email">Email address</label>
<input type="email" id="popup-email" name="email" autocomplete="email" required>
<button type="submit">Send it to me</button>
</form>
<form method="dialog">
<button>No thanks</button>
</form>
</dialog>Calling showModal() on this element opens it. The second form, with method="dialog", closes it with no script. Always give the visitor a clear way to decline.
Slide-ins and bars
A slide-in is a non-modal box, so the visitor can keep reading and scrolling behind it. That makes it a gentler version of a pop-up. A bar is a thin strip fixed to an edge of the viewport. It suits a short message and a single email field, or a button that opens a fuller form.
Both are built with CSS positioning (position: fixed) plus a trigger. Test them on narrow screens. A fixed element that is 60 pixels tall takes a large share of a phone's visible area.
Choosing a placement
Work through these questions in order.
- Does the page have long content that people read to the end? Use an inline form there first.
- Is the offer strong and specific, such as a checklist or discount? A pop-up or slide-in can promote it.
- Is the page used for a task, such as checkout or search results? Avoid interruptions. Use nothing, or a quiet inline form.
- Is the audience mostly on phones? Prefer inline forms and small bars, because large overlays on mobile can hurt usability and search ranking (covered in a later chapter).
Combining placements
Placements work together. A common setup is an inline form at the end of every article and one slide-in on a few high-traffic pages. Do not stack several overlays on one page. Give each page one primary placement, and compare results using the measurement methods from the later chapter on testing.
Exercise
A blog has long tutorials and 70% of its visitors read on phones. Which placement would you try first, and why would you hold back on a full-screen pop-up?
Show answer
Try an inline form at the end of each tutorial. It reaches readers who finished the article and does not cover content. A full-screen pop-up on a phone blocks the page, frustrates visitors, and can be treated as an intrusive interstitial by search engines.