Blog

How to Create a Simple Coming Soon Page with HTML and CSS

Responsive coming soon page shown on desktop and mobile with HTML and CSS

Create a simple coming soon page with semantic HTML, a clear launch message and responsive CSS. Center a flexible card, use fluid typography and give visitors an honest next step. You do not need JavaScript, a framework or a large background image for a useful holding page.

This tutorial includes a complete HTML/CSS template, light and dark preview themes, native expandable information panels and a downloadable ZIP. The design works as a standalone page; the embedded preview below uses styles scoped to the component.

Live demo: responsive coming soon page

Switch the preview theme, then expand the two questions. These controls work with HTML and CSS only. The sample is fictional and does not collect email addresses.

Preview theme

Example Studio

Work in progress

Something useful
is on its way.

We’re building a thoughtful new home for our ideas. Check back here for launch news.

What happens next?

This fictional studio will share its launch update on this page. There is no confirmed release date in this sample.

Can I sign up for updates?

This template does not collect email addresses. Add a working subscription service and clear consent information if your project needs a mailing list.

Example Studio is a fictional project used for this demo.

What should a coming soon page include?

A coming soon page is a temporary public page that explains what is being built before the full website launches. Visitors should understand the project, its current status and where to find the next update. A short, readable message usually serves that purpose better than an unexplained countdown.

  • Identity: your project or business name.
  • Clear headline: state that the website or product is being prepared.
  • Useful context: explain what visitors can expect.
  • Honest next step: provide a real contact route, working signup flow or instruction to check this page again.
  • Flexible layout: keep content readable on narrow screens and with larger text.

This example uses a fictional studio name and a check-back message. It deliberately avoids a made-up launch date and a form that appears to subscribe users without a backend.

1. Create the HTML document

Create index.html and style.css in the same folder. Set the document language, character encoding and viewport. Use one main landmark and one page-level H1 in the standalone document.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Example Studio — Coming Soon</title>
  <meta name="description" content="Example Studio is preparing a new website. Check this page for launch news.">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main>
    <section class="swcsoon" aria-labelledby="launch-title">
      <div class="card">
        <span class="brand">Example Studio</span>
        <h1 class="headline" id="launch-title">Coming soon.</h1>
        <p>We’re preparing our new website. Check back for launch news.</p>
      </div>
    </section>
  </main>
</body>
</html>

This short version shows the structure. The ZIP contains the complete styled version with the optional preview controls and information panels. Replace the sample identity and metadata before publishing your own page.

2. Center a flexible card with CSS Grid

A fixed 480-pixel container can overflow a small phone. Let the outer section use the available width and cap its maximum size. Give the main area a minimum height, so it can still grow when the text needs more room.

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.swcsoon {
  width: min(100%, 880px);
  box-sizing: border-box;
}
.card {
  max-width: 710px;
  margin: auto;
  padding: clamp(22px, 5vw, 48px);
}

The vh declaration is a fallback before svh. Minimum height allows the document to become taller than the screen; avoid a fixed height with hidden overflow, which can cut off content when people zoom or expand a question. In the blog preview, the component sits inside the article instead of filling the whole viewport.

3. Use readable, fluid typography

Keep the launch headline prominent while allowing it to adapt to screen width. A system font avoids a separate font download. Limit paragraph width so the introductory message remains easy to scan.

.headline {
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.12;
}
.intro {
  max-width: 44ch;
  margin-inline: auto;
}

The MDN clamp() reference describes its minimum, preferred and maximum values. Here the headline scales within a range instead of growing without a limit. Still test larger text and long real-world copy; fluid sizing alone does not guarantee a usable layout.

4. Add optional light and dark preview themes

Use a native radio group with visible labels. The checked Dark radio changes the component’s custom properties through :has(). Both themes keep the same structure and content.

<fieldset class="theme">
  <legend>Preview theme</legend>
  <label><input type="radio" name="launch-theme" value="light" checked> Light</label>
  <label><input type="radio" name="launch-theme" value="dark"> Dark</label>
</fieldset>
.swcsoon { --card: #fff; --ink: #142b50; }
.swcsoon .theme { display: none; }
@supports selector(:has(*)) {
  .swcsoon .theme { display: flex; }
  .swcsoon:has(input[value="dark"]:checked) {
    --card: #182840;
    --ink: #f2f6ff;
    color-scheme: dark;
  }
}

The MDN :has() reference explains selecting an element based on a matching descendant. This template treats the switch as an enhancement: browsers without support retain the light palette and do not show an ineffective control. Theme selection is a preview preference and is not saved after reload.

5. Use native expandable questions

Put secondary information in details elements with descriptive summary labels. Visitors can reveal the answers without a custom JavaScript accordion. Keep essential launch information visible above these panels.

<details>
  <summary>What happens next?</summary>
  <p>We will post a launch update on this page.</p>
</details>

According to the MDN details element reference, summary supplies the disclosure label and the open state controls whether the additional content is displayed. Preserve native keyboard operation and a visible focus outline. The demo allows both questions to stay open at once.

Customize the template for your website

  • Replace Example Studio with your project name and write a specific description of what is coming.
  • Change the CSS custom properties for both palettes, then check text, controls and focus visibility again.
  • Keep the decorative CSS orbit hidden from assistive technology because it conveys no additional information.
  • If you add a launch date, publish a confirmed date with a time zone. A countdown also needs correct time handling and an expired state.
  • If you add an email form, connect an actual subscription service, explain the purpose and handle consent, errors and success accurately.
  • For multiple previews on one page, give each section a unique ID and each radio group a unique name.

SEO and deployment considerations

Use an accurate document title, concise description and visible project explanation. These help describe the page’s purpose to readers and search systems; a temporary page cannot promise rankings or AI citations. Avoid replacing useful existing website pages with identical placeholder content.

For a new standalone holding page, upload index.html and style.css together. Preserve the stylesheet path and check the public URL on desktop and mobile. A static HTML file does not configure HTTP status codes, redirect rules or access control. Set those separately through your hosting environment when needed.

For WordPress, do not paste the standalone html, head or body wrapper into a post. Use the scoped component markup and CSS, and keep one page-level H1 supplied by the theme. Enqueue the stylesheet through your theme or plugin for a maintained implementation.

Frequently asked questions

Can I create a coming soon page without JavaScript?

Yes. This template uses HTML for the content and native disclosure controls, and CSS for layout, colors and theme selection. There is no JavaScript file or framework dependency.

Does the template subscribe visitors to a mailing list?

No. It contains no email collection form, subscription endpoint or stored visitor data. A production signup feature needs a real service and clear feedback.

Why is the theme switch missing in an older browser?

The optional switch uses CSS :has(). If the selector is unavailable, the control stays hidden and the light design remains usable. The page’s launch message still displays.

Can I use my own image instead of the orbit graphic?

Yes. Replace the decorative element with an optimized image, give it explicit dimensions and make it responsive. Use meaningful alternative text only when the image conveys information; a purely decorative image can use empty alt text.

How do I keep the page readable on mobile?

Use the viewport meta tag, fluid widths, modest padding and a content-driven height. Test long copy, larger text and expanded disclosures. The included layout avoids a fixed-width card and does not require horizontal page scrolling at the tested 390-pixel viewport.

Download the complete coming soon page

The ZIP includes index.html, style.css and a customization guide. Open the HTML file directly to try the page, then replace the fictional copy and review your deployment settings before using it on your own domain.