HTML: Structuring Web Pages
How web pages are built
Every website uses three languages:
- HTML – structure and content.
- CSS – appearance and layout.
- JavaScript – behaviour and interactivity.
Anatomy of an HTML page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Page</title>
</head>
<body>
<h1>Welcome to DDM Academy</h1>
<p>I am learning <strong>web development</strong>.</p>
<a href="https://ddmacademy.com">Visit us</a>
<img src="photo.jpg" alt="Students in class">
</body>
</html>
Common elements
- Headings
h1–h6, paragraphsp, linksa, imagesimg. - Lists:
ul/olwithli. - Semantic layout:
header,nav,main,section,article,footer. - Forms:
form,input,label,button.
Always add alt text to images – it helps screen readers and SEO.
Exercise: Install VS Code. Build an
index.html "About Me" page with a heading, a photo, a list of your skills and a contact link.Knowledge check
Lesson quiz
Enroll in the course to take the quiz and track your progress.
Enjoying this preview? Enroll to unlock every lesson and earn your certificate.
Enroll in this course