Master the building blocks of the web: HTML, CSS, and JavaScript. Build responsive websites and interactive web applications from scratch.
Chapter 1 of 12 - Getting Started
Web development is the process of creating websites and web applications that run on the internet. In this comprehensive course, you'll learn the three fundamental technologies that power the modern web:
Throughout this course, you'll build several real-world projects including:
Let's start with the most basic HTML document. Every HTML page follows this basic structure:
Let's break down what each part does:
<!DOCTYPE html>
- Tells the browser this is an HTML5 document<html>
- The root element that contains all other elements<head>
- Contains metadata about the page (not visible to users)<title>
- Sets the page title shown in the browser tab<body>
- Contains all the visible content of the pageHTML uses elements to structure content. Elements are created using tags, which are keywords surrounded by angle brackets. Most elements have an opening tag and a closing tag:
Here are some of the most commonly used HTML elements:
Element | Purpose | Example |
---|---|---|
<h1> to <h6> |
Headings (largest to smallest) | <h1>Main Title</h1> |
<p> |
Paragraphs | <p>Some text</p> |
<a> |
Links | <a href="url">Link</a> |
<img> |
Images | <img src="image.jpg" alt="Description"> |
<div> |
Generic container | <div>Content</div> |
In the next chapter, we'll dive deeper into HTML structure and learn about semantic elements that make your websites more accessible and SEO-friendly. We'll also start building our first project!