Professional Business Website · Phase 2 · Lesson 1 of 3
Page Skeleton and Semantic Layout Elements
Create the five pages with a shared structure of header, nav, main and footer, and understand why semantic elements matter for accessibility and search.
What you need
A computer (Windows, macOS or Linux) with Visual Studio Code (free) and a current web browser such as Chrome or Firefox. A smartphone is used for testing.
In this lesson you will
- Use header, nav, main, section and footer correctly
- Keep a consistent structure across pages
Key concepts
semantic HTMLheadernavmainsectionfooterheading levels
The lesson
Semantic elements describe what content is: header for the top area, nav for the main links, main for the page's unique content, footer for contact details and copyright. Screen readers and search engines use this structure.
Each page has exactly one h1 that says what the page is about ('Tailoring services and prices'), followed by h2 and h3 headings in order. Never choose a heading level for its size; use CSS for size.
Build one page carefully, then copy its header, navigation and footer to the others so every page is consistent. In an intermediate extension you can learn templating, but plain copies are fine for five pages.
Step by step
- Write the complete structure of index.html: header with business name, nav with five links, main, footer.
- Add the h1 and the main sections from the wireframe.
- Copy the shared parts to services.html, gallery.html, about.html and contact.html.
- Check every navigation link opens the correct page.
Practice activity
Create all five pages with consistent semantic structure and working navigation, and commit them.
Expected result: Five linked pages, each with header, nav, main, footer and one correct h1.
Common mistakes
- Using headings for size instead of meaning, such as an h4 straight after an h1
- Pages with slightly different menus, so links break when one is changed
Check your understanding
-
How many h1 elements should a page have?
Show answer
One, describing what the page is about.
-
Why use nav instead of a plain div for the menu?
Show answer
It tells browsers, screen readers and search engines that it is the main navigation.
Further learning
Projects are instructor-guided: an instructor sets milestones, checks your work and gives feedback, online or in person. Self-study of the public lessons does not lead to a certificate. Enrolment and fees follow the Academy's existing policies — contact the Academy.