Skip to main content
⏱️ Duration: 15 minutes | This section covers the absolute basics of web development.

What is a Website?

Every website you visit—from Netflix to TikTok to your university portal—is built with just three technologies: Think of a website like a human body:
🤯 Did you know? The first website ever created is still online! Visit info.cern.ch—it was made in 1991 by Tim Berners-Lee. No CSS, no JavaScript, just pure HTML!

HTML: The Structure

HTML (HyperText Markup Language) defines the content and structure of web pages.

Your First HTML Page

Beginner Tip: Every HTML element has an opening tag <tag> and a closing tag </tag>. The content goes between them.

Common HTML Elements


CSS: The Style

CSS (Cascading Style Sheets) controls how HTML elements look.

Adding Styles

CSS Selectors

Beginner Tip: Use classes (.classname) for styles you’ll reuse. Use IDs (#idname) for unique elements.

The Box Model

Every HTML element is a box with 4 layers. Think of it like a package: The CSS Box Model Real-world analogy:
  • 📝 Content = The gift inside the box
  • 🧸 Padding = Bubble wrap protecting the gift
  • 🖼️ Border = The cardboard box itself
  • 📦 Margin = Space between boxes on the shelf

JavaScript: The Behavior

JavaScript makes websites interactive.

Your First Script

JavaScript Basics

Beginner Tip: Use const for values that don’t change, and let for values that might change. Avoid using var.

DOM Manipulation

JavaScript can change HTML elements:

Putting It All Together


Key Takeaways

HTML = Structure

Defines what content appears on the page

CSS = Style

Controls how content looks

JS = Behavior

Makes content interactive

Learn More

HTML Tutorial

W3Schools HTML Guide

CSS Tutorial

W3Schools CSS Guide

JavaScript Tutorial

W3Schools JS Guide

Next up: Tailwind CSS →