Free starter guide · HTML & CSS

Your first business webpage

Create a simple, responsive page that tells visitors what you do and how to contact you.

4 lessonsSelf-pacedNo sign-up needed
Lesson 1

Start with the page’s job

A useful business page answers three questions: what do you offer, who is it for, and what should the visitor do next? Write those answers before choosing colours. For this exercise, imagine a small repair service. The business name and details below are illustrative.

Your first version needs a clear heading, a short service description, a list of services, and a contact link. You don’t need a carousel or an account system to communicate those essentials.

Try it

Write one sentence using this pattern: “We help [customer] with [service] in [location].” Then choose one next action, such as requesting a quote.

Lesson 2

Give your content a structure

Create a folder and save a file named index.html. HTML describes the meaning of the content. Use one main heading, meaningful section headings, and a real link for navigation.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Example Repair Studio</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <header><p>Example Repair Studio</p></header>
  <main>
    <h1>Careful repairs for everyday furniture.</h1>
    <p>We repair tables and chairs for local homes.</p>
    <section>
      <h2>How we can help</h2>
      <ul><li>Chair repairs</li><li>Table refinishing</li></ul>
    </section>
    <a href="mailto:[email protected]">Request a quote</a>
  </main>
  <footer><p>Replace this with your real business details.</p></footer>
</body>
</html>

Open the file in your browser. Replace the illustrative name, contact address, and description with your own accurate content before publishing. The mailto: link opens an email app; it does not silently send a message.

Lesson 3

Make it comfortable on small screens

Create style.css in the same folder. Start with readable text and a flexible container. max-width keeps lines comfortable on a large screen; percentage widths let them shrink on a phone.

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 1rem/1.65 system-ui, sans-serif;
  color: #183d39;
  background: #f8fbfa;
}
header, main, footer {
  width: min(90%, 64rem);
  margin-inline: auto;
}
main { padding-block: 4rem; }
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; }
a { color: #126b60; }
a:focus-visible { outline: 3px solid #b85c21; outline-offset: 4px; }
img { max-width: 100%; height: auto; }

Avoid fixed-width elements that force horizontal scrolling. If you add a grid, reduce the number of columns on smaller screens. Use meaningful alternative text for informative images and an empty alt for purely decorative ones.

Lesson 4

Check before you publish

Resize your browser and check the page on a phone. Use the Tab key to move through the links: you should always see where focus is. Increase the text zoom and make sure important content remains available.

  • Check every link and contact detail.
  • Replace examples with real business information.
  • Explain prices, deliverables, and timelines accurately.
  • Use HTTPS when the page is hosted.
  • Never put passwords or private API keys into browser code.

Your small project

Build a one-page profile for a service you can actually provide. Include a heading, three service descriptions, an accurate contact method, and a short delivery explanation.

How to judge your result

A new visitor should understand the service and find the contact action without guessing. The page should remain readable on a phone and usable with a keyboard.

Check your understanding

What should a visitor understand first?

Keep learning

These external references are maintained by their respective publishers. SiteRang is not affiliated with them.

Explore another guide