Skip to content
All articles

HTML website fundamentals: structure, forms and accessibility

Hand-drawn website wireframes photographed on paper
Photo by picjumbo.com on Pexels

An HTML website starts with a document whose elements describe its content. Learn through 5 checks: document structure, headings, links, forms and accessibility. HTML supplies meaning and controls; styling and server processing are separate responsibilities. Begin with a local practice page before connecting a real business form or collecting personal information.

How do you build a useful first HTML page?

Create a plain-text file named index.html and open it in a browser. Use a text editor rather than a word processor that inserts document formatting. Keep this as a local exercise with fictional content. Opening the file lets you inspect the page, but it does not publish a website or establish a working submission service. Those are later tasks with their own hosting and processing requirements.

Start with an explicit document structure. The example below declares HTML, identifies the language, sets a page title and places visible content inside the body. Save the file after editing and reload it in the browser. Change the fictional business name and observe the difference between the browser-tab title and the visible heading. This helps distinguish document metadata from the content a visitor reads.

Use headings to organise the content rather than choosing them only for their apparent size. W3C’s heading tutorial explains their role in hierarchy and navigation. Give the page a descriptive main heading and use subordinate sections for its subjects. If a sentence belongs in ordinary prose, keep it as a paragraph and let styling handle its appearance later.

Add links with destinations that match their wording. A link labelled contact should lead to the intended contact information, not merely somewhere within a large unrelated page. For the local exercise, an in-page link can move to a named section. Inspect the destination after selecting it. A visible underlined phrase is not enough to prove that the action sends the reader to a useful place.

Add images only when they serve the page. W3C’s image guidance distinguishes informative, decorative and functional purposes. Write the alternative according to that purpose. Do not use a file name as the description or repeat nearby text unnecessarily. Keep licensed or original practice assets separate from any future public site and record their permitted use before publishing them.

What should a beginner check before adding a form?

Use the HTML form standard to understand controls and labels. A label should identify the information expected by the corresponding control. Group related choices where that relationship matters. A form’s visual layout is only part of its usefulness: the visitor also needs an understandable sequence, clear instructions and a way to recognise errors without losing the work already entered.

Separate a form interface from its processing. A text field and submit button do not automatically create an email or save a record. The form action and method communicate with a processing destination. In the practice page, keep the example deliberately non-operational and avoid collecting real information. Before a business form is connected, define validation, storage, permissions and the result shown after acceptance.

Do not rely on browser validation as the only safeguard. The HTML standard distinguishes client-side validation from server processing. Browser feedback can help a person correct an entry, but the processing service must independently enforce the relevant rules. A visitor or another program can send a request without using your visible form. Treat the server’s accepted result as different evidence from a browser allowing submission.

Test keyboard use on the local page. Move through links and controls without a mouse, inspect whether focus remains visible and check that the order follows the task. Then inspect the page with a narrow browser window. These observations do not constitute a complete accessibility audit, but they can reveal early structural problems before styling makes the page more complex.

Keep the next development steps explicit. CSS can control presentation, JavaScript can add behaviour and a server can process requests, but none should hide missing content meaning. When asking for help, supply the small practice file, the expected result and the observed problem. A reproducible example is more useful than a screenshot alone because it allows another person to inspect the actual document structure.

Add a form-planning exercise without connecting a live endpoint. On paper, name the fields a fictional enquiry needs, write each label and identify the result that would mean the request was accepted. Include an invalid entry and explain where correction guidance should appear. Then distinguish the browser interface from the processing service that would enforce the rule. This prevents a common beginner misunderstanding: a visible button and an attractive confirmation message do not establish that information was validated, stored or delivered. Keep the practice page local and use fictional material. When the server route is later designed, retain the same expected result so the implementation can be checked against the original user task rather than merely against a screenshot.

Decision worksheet

Original contribution: a first-page inspection worksheet. Save this minimal fictional page and change the title, heading and contact section separately.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Practice business page</title>
</head>
<body>
  <h1>Practice business</h1>
  <p>A fictional page for learning HTML.</p>
  <a href="#contact">Find the contact information</a>
  <h2 id="contact">Contact</h2>
  <p>This local exercise does not collect enquiries.</p>
</body>
</html>

For each change, record the edited element, expected effect and actual browser result. Then explain which parts are content, metadata and navigation. This turns copying code into an observable learning task.

Checkpoint Evidence to retain Decision or corrective action
Document Saved HTML file and browser result Distinguish local viewing from publication
Headings Page subject and section hierarchy Choose meaning before visual size
Links Descriptive wording and checked destination Repair misleading navigation
Forms Labels and defined processing route Do not collect data in an unconnected demo
Accessibility Keyboard and narrow-window observations Record limits of the initial check

Extend the exercise by adding another meaningful section and a link to it. Check whether the heading order still describes the page clearly. If an image is added, explain why its alternative is informative, empty or action-oriented. Do not connect a real submission route until the handling requirements have been established and reviewed. The goal is to understand the document before adding a larger toolchain.

See web development for delivery context and hosting for the later publishing stage. To discuss a business page, get started with a fictional journey and the worksheet.

By Spout Team. AI-assisted drafting by Codex using the linked primary sources.

Make your next move.

A website, a store or a clearer digital plan. Let’s start with your business.

Start your brief