← All subjects
NewFree preview available
Coding · Any age, any level

HTML from Beginner to Advanced: Build Web Pages

Learn HTML, the language every web page is built from. Write real code in your browser from the first lesson, with tasks that check themselves, and finish by building your own profile page.

★ New0 reviews0 learners
Created by GradesPal
Modules
3
Lessons
12
Study time
6h 45m

What you’ll learn

Write well-structured HTML pages from an empty file
Use headings, lists, links, images, tables and forms correctly
Build forms with labels, the right input types and built-in validation
Structure a page with semantic elements such as header, nav, main and footer
Make pages that work with screen readers and keyboards, and can be found by search engines
Build and download a complete profile page of your own

Workshop content

3 modules · 12 lessons · 6h 45m total

Level 1 · Beginner4 lessons
Your first web page30 min · Preview

Your first web page

HTML4 min readTry it live: Code Studio

In this lesson

  1. How a web page reaches you
  2. Elements and tags
  3. Two elements to start with
  4. Comments
  5. Common mistakes

Practise this in the Code Studio

open the exercise for this lesson. You type real code in your browser, see the result at once, and the tasks tick themselves when your code is right. Nothing to install.

Every website you have ever opened, from a news site to your favourite social app, is built from the same three languages:

LanguageIts jobThink of a house
HTMLThe content and structureThe walls and rooms
CSSHow it looksThe paint and furniture
JavaScriptWhat it does when you clickThe lights and taps

This course teaches HTML, the one every page starts with. HTML stands for HyperText Markup Language. It is not a programming language: it is a way of marking up text so the browser knows what each piece is.

How a web page reaches you

  1. You type an address, or click a link.
  2. Your browser (Chrome, Edge, Safari, Firefox) asks a computer called a server for the page.
  3. The server sends back a file of HTML.
  4. The browser reads the HTML from top to bottom and draws the page.

A web page is just a text file. Anyone can write one, including you.

Elements and tags

HTML is made of elements. Most elements have three parts:

HTML
<h1>Thabo Mokoena</h1>
PartExampleMeaning
Opening tag<h1>"A main heading starts here"
ContentThabo MokoenaWhat people see
Closing tag</h1>"The heading ends here" (note the slash)

Tags are written inside angle brackets. People never see the tags, only the result.

Two elements to start with

HTML
<h1>Thabo Mokoena</h1>
<p>I am learning to code.</p>
<p>This is my first web page.</p>
  • <h1> is the main heading of the page. It is big and bold.
  • <p> is a paragraph. Each paragraph starts on its own line with a gap around it.

Watch out

Spaces and new lines do not matter. The browser ignores extra spaces and blank lines in your HTML. To start a new paragraph you need a new <p>, not the Enter key.

Comments

A comment is a note for people who read the code. The browser does not show it.

HTML
<!-- This is a comment -->

Common mistakes

  • Forgetting the closing tag. Without </h1> the whole page becomes a heading.
  • Forgetting the slash. <p>Hello<p> opens two paragraphs and closes none.
  • Typing tags in the wrong order. Close the last one you opened first.

Try it

  1. Write a page with your name as the main heading and two paragraphs about yourself.
  2. Delete the </h1> and watch what happens to the result. Put it back.
  3. Put ten spaces between two words in a paragraph. How many spaces does the browser show?

Check yourself

What do the letters HTML stand for?

HyperText Markup Language.

What is the difference between a tag and an element?

A tag is the part in angle brackets, such as <p> or </p>. An element is the whole thing: opening tag, content and closing tag.

How many spaces does the browser show for ten spaces in a row?

One. The browser squeezes any run of spaces and new lines into a single space.

Practise this lesson in the Code Studio →

Headings and text30 min
Lists and links30 min
Images30 min
Level 2 · Intermediate4 lessons
The full HTML document30 min
Tables30 min
Forms and inputs30 min
More form controls30 min
Level 3 · Advanced4 lessons
Semantic HTML30 min
Accessibility and being found30 min
Audio, video and embedding30 min
Project: a profile page75 min

Requirements

  • Any device with a web browser: a computer is best, a phone works
  • No experience needed: we start with the very first tag
  • Open to everyone: no age or grade requirement

Frequently asked questions

Do I need to install anything?

No. You write and run all your code in the GradesPal Code Studio, in your browser. It works on a computer, a tablet or a phone, though a keyboard makes typing code much easier.

Can I buy only one level?

Yes. The course has three levels: Beginner, Intermediate and Advanced. You can buy the whole course or one level at a time.

How long does it take?

There are 12 lessons. Working about an hour a day, most learners finish in three to four weeks, but you can go at your own speed.

Who is this course for?

Anyone. The course starts from zero, so it suits school learners, university students and adults changing careers or learning for fun. There is no grade or age requirement.

Will I get a certificate?

Yes. Finish the lessons and the project to complete the course.

No reviews yet