UndieGravity LogoUndiegravity

Build a Single Page HTML Landing Page That Converts

Build a fast one page landing page with plain HTML and CSS: the sections that matter, semantic markup, mobile first CSS, and a clear call to action.

By UndieGravity, , 2 min read

A landing page has one job: get a visitor to take one action, such as booking a table, signing up, or sending a message. You do not need a framework for that. A single HTML file with a stylesheet loads instantly, works on any host, and is easy for anyone to edit.

The sections that matter

  1. Hero: a headline that says what you offer, one sentence of detail, and the main button.
  2. Benefits: three short points about what the visitor gets, not a feature list.
  3. Proof: reviews, client logos, numbers, or photos of real work.
  4. Details: pricing, menu, schedule, or how it works.
  5. Final call to action: repeat the main button with a short reason to act now.
  6. Footer: contact details, address, and legal links.

A semantic skeleton

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Bella Cucina | Fresh Pasta in Lahore</title>
  <meta name="description" content="Handmade pasta and wood fired pizza. Book a table online in under a minute.">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <header>...</header>
  <main>
    <section id="hero">
      <h1>Fresh pasta, made every morning</h1>
      <p>Handmade pasta and wood fired pizza in Gulberg.</p>
      <a class="button" href="#book">Book a table</a>
    </section>
    <section id="menu">...</section>
    <section id="book">...</section>
  </main>
  <footer>...</footer>
</body>
</html>

Use one <h1>, then <h2> for each section. Search engines and screen readers use this outline to understand the page.

Mobile first CSS

Write the styles for a phone first, then add min-width media queries for larger screens. Most landing page visits come from phones.

.benefits {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

Make the button impossible to miss

  • One primary color used only for the main action.
  • A specific label: "Book a table" beats "Submit".
  • At least 44 by 44 pixels so it is easy to tap.
  • Visible on the first screen without scrolling.

Speed checklist

  • Compress images and use WebP; set width and height on every <img>.
  • Add loading="lazy" to images below the first screen.
  • Keep JavaScript optional. A landing page should work without it.
  • Self-host fonts or use system fonts.

Want a head start? Pick a single page HTML template from the catalog, check it against the sections above, replace the text and photos, and upload it to any host.

Keep reading

HTML and CSS

CSS Grid vs Flexbox: When to Use Each

Flexbox lays out items in one direction; CSS Grid lays out rows and columns together. Real examples of navbars, card grids, and page layouts with each.

, 1 min read