ITIAN Knowledge Hub
Technology Simplified — Solutions That Work

website-building-html-foundations

ITIAN Website Building Short Course

Technology Simplified — Solutions That Work

Website Building · Lesson 3 of 8

Build the Page with HTML

Turn your page plan into meaningful HTML with headings, sections, links, lists and an accessible image.

  • Complete beginner
  • 90 minutes
  • Guided practical activity
  • Part of one website project
Course progressLesson 3 of 8Lesson 3 of 8
Lesson outcomes

By the end of this lesson, you can…

  • Explain how elements, tags and attributes work together.
  • Create a valid document head and body.
  • Use semantic landmarks and a logical heading order.
  • Add links and images using correct paths and alternative text.
Prepare

Before you begin

What you need

  • The Visual Studio Code project completed in Lesson 2.
  • Your audience, purpose and section plan from Lesson 1.
  • One properly licensed image saved in the images folder.

Starter check

Open index.html and confirm it displays in the browser. Keep styles.css available, but build the content structure before visual design.

Learn

Understand and demonstrate the skill

HTML describes the meaning and structure of a webpage. Good HTML helps browsers, search engines and assistive technology understand what each part of the page is for.

Key terms

Element and tag

An element is the complete component; tags mark its beginning and, when required, its end.

Attribute

Extra information inside an opening tag, such as href, src, alt, class or lang.

Semantic HTML

Elements chosen for their meaning, such as nav, main, section and footer.

Alternative text

A concise text replacement communicating the purpose or information of an image.

Follow the demonstration

  1. Complete the document head. Set language, character encoding, responsive viewport, page title and stylesheet link.
  2. Build the landmarks. Add header, nav, main and footer so the major page areas have clear roles.
  3. Add content sections. Use one h1 for the page topic and h2 headings for the planned sections.
  4. Create useful links. Use descriptive link text and verify every href destination.
  5. Add the image. Use a relative src, suitable alt text and explicit width and height.

Worked example

<header>
  <h1>Kāpiti Coast Photography</h1>
  <nav aria-label="Main navigation">
    <a href="#services">Services</a>
    <a href="#contact">Contact</a>
  </nav>
</header>
<main>
  <section id="services">
    <h2>Photography Services</h2>
    <p>Natural portraits and local event photography.</p>
    <img src="images/coast-portrait.webp"
         alt="Family portrait at sunset on the Kāpiti Coast"
         width="1200" height="800">
  </section>
</main>
Your turn

Complete the guided activity

Replace the starter body with the complete content from your plan and test every heading, link and image path.

  1. Prepare. The document includes language, charset, viewport, title and stylesheet information.
  2. Build. There is one page h1 followed by logically ordered h2 headings.
  3. Check. Every link and section ID works in the browser.
  4. Record. The image has a correct path, dimensions and appropriate alternative text.

Activity checklist

0 of 5 tasks
0 of 5 tasks complete0%
Knowledge check

Check your understanding

Answer all three questions, then review any topic that needs another look.

1. What is semantic HTML?

2. What should the alt attribute communicate?

3. Why use one clear h1?

Complete all three questions, then check your answers.
Complete the lesson

Review, reflect and continue

Success criteria

  • All planned content displays in a logical order.
  • The document uses meaningful landmarks and headings.
  • Links and image paths work without errors.

Reflection prompt

Which semantic element made your page easier to understand, and what content did you reorganise while building?