Your First Web Page
1 min read3 lessons in topic
Learning objective
By the end of this lesson you will be able to create a basic HTML page and view it in a browser.
Every website you have visited is built from HTML — the HyperText Markup Language. HTML describes the structure of a page using tags.
The anatomy of an HTML document
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>Let's break down each part:
- <!DOCTYPE html> declares the document type
- <html> wraps the whole page
- <head> holds metadata and the page title
- <body> holds everything visible on the page
Practice exercise
Create a page with a heading, one paragraph about yourself, and a list of three things you want to learn this semester.
Check your understanding
1. Which tag wraps the visible content of a page?
2. What does HTML stand for?
Self-graded — answer then check below.