Back to Unit 6

Unit 6 Website Development - Tutorial 1

1.5 Build a basic HTML page structure

Continue the same static website project by adding the essential HTML structure every page needs.

What You Are Building

A basic HTML page structure is the starting template for a web page. It tells the browser that the file is an HTML document, gives the page a head section for setup information, and gives the page a body section for the content visitors can see.

Every page in your website should use this structure before you add headings, paragraphs, images, links or navigation.

Basic Page Template

In your unit-6-website folder, add this structure to index.html, about.html, timetable.html and contact.html. Change the <title>, <h1> and paragraph text so each page has a clear purpose.

<!DOCTYPE html>
<html lang="en-GB">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>School Coding Club</title>
</head>
<body>
    <h1>School Coding Club</h1>
    <p>Welcome to the School Coding Club website.</p>
</body>
</html>

What Each Part Does

Part Purpose
<!DOCTYPE html> Tells the browser to use modern HTML.
<html lang="en-GB"> Starts the HTML page and sets the page language to British English.
<head> Contains setup information about the page. This does not usually appear on the web page itself.
<meta charset="UTF-8"> Allows the page to display a wide range of characters correctly.
<meta name="viewport"> Helps the page display properly on phones, tablets and computers.
<title> Sets the text shown in the browser tab.
<body> Contains the visible page content, such as headings, text, images and links.

Build It Yourself

  1. Open your unit-6-website project folder.
  2. Add the basic page template to index.html, about.html, timetable.html and contact.html.
  3. Use School Coding Club as the homepage <title> and <h1>.
  4. Use About the Club as the about page <title> and <h1>.
  5. Use Club Timetable as the timetable page <title> and <h1>.
  6. Use Contact the Club as the contact page <title> and <h1>.
  7. Add one paragraph to each page.
  8. Save each file and open each one in a browser.

Common Mistakes

Success Checklist