Creating Your First HTML Page
Build a valid page with meaningful structure, headings, paragraphs, lists and metadata.
Build a valid page with meaningful structure, headings, paragraphs, lists and metadata.
What you will learn
- Explain the role of HTML
- Create a complete HTML document
- Use semantic content elements
Before you begin
Create a separate practice folder and use non-sensitive sample content. Keep backup copies before restructuring files. Browser interfaces vary, so use the browser developer tools available on your computer.
Understand HTML
HTML describes the structure and meaning of page content. CSS controls presentation, while JavaScript can add behaviour.
An element normally includes an opening tag, content and a closing tag. Attributes add information such as a link destination or image description.
Build the document
A basic document includes a doctype, html element, head and body. The head contains metadata such as character encoding, viewport settings and a useful title.
The body contains visible content. Indent nested elements consistently so the structure is easy to inspect and maintain.
Use meaningful elements
Use one clear main heading, then organise sections with a logical heading order. Paragraphs, lists, articles, navigation and footer elements describe their purpose.
Semantic HTML helps browsers, search tools and assistive technologies understand the page without extra scripting.
Guided practice
- Create index.html with a complete document structure.
- Add a title, heading, two paragraphs and a list.
- Open the file in a browser and correct any structural mistakes.
Knowledge check
- What belongs in the head?
- What does semantic HTML communicate?
- Why should heading levels be logical?
Completion standard
Continue when you can complete the guided practice and explain the knowledge-check answers in your own words.
Web Design for Beginners
Continue through the course in order. New published parts appear here automatically.
- 1Planning a Useful Website
- 2Creating Your First HTML Page
- 3Adding Links Images and Page Navigation
- 4Styling Pages with CSS
- 5Understanding the Box Model and Page Layout
- 6Designing Responsive Mobile Friendly Pages
- 7Designing Accessible and Inclusive Interfaces
- 8Building Clear and Safe Web Forms
- 9Testing Performance Search and Browser Quality
- 10Publishing and Completing a Small Website