HTML Foundations
Building blocks of every webpage
Orientation + Web Basics
5+ years experience teaching web development
A clean, multi-section webpage
Structure & style
Mobile-first layouts
Interactive pages
Real data integration
Backend intro
Deploy & showcase
Your code editor
Debug & inspect
Version control
Live sessions
Quick support
Learn new concepts together
Try it yourself with guidance
Build real projects
Feedback & improvement
Be present and engaged
30-60 minutes minimum
No question is too small
Practice makes permanent
Support each other's growth
User
Browser
Internet
Server
Response
Runs in the browser
What users see & interact with
HTML, CSS, JavaScript
Your computer does the work
Runs on remote computers
Processes data & logic
Node.js, Python, databases
Server computers do the work
The skeleton of every webpage. It defines the content and structure.
<h1>,
<p>, <div>
The design layer that makes pages beautiful. Controls colors, layout, fonts, and animations.
Makes pages interactive and dynamic. Responds to user actions and updates content in real-time.
User clicks
JS runs code
Page updates
<button>
Click Me
</button>
Defines what exists on the page
button {
background: green;
color: white;
border-radius: 8px;
}
Controls how it looks
button.onclick = () => {
alert('Clicked!');
}
Defines what it does
Download VS Code, install Live Server extension, join WhatsApp group
Create index.html with basic structure: doctype, html, head, body tags
Add: page title, heading, 2 paragraphs, and 2 links to your favorite sites
Due: Before Session 2
Submit via GitHub link
Building blocks of every webpage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width">
<title>My First Page</title>
</head>
<body>
<!-- Your content goes here -->
</body>
</html>
Main heading
<h1>Welcome</h1>
Paragraph text
<p>Hello world</p>
Link to pages
<a href="...">Link</a>
Display images
<img src="..." alt="...">
Container block
<div>...</div>
Inline container
<span>text</span>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<ol>
<li>Learn HTML</li>
<li>Learn CSS</li>
<li>Learn JS</li>
</ol>
<a href="...">Click here</a>
<a href="...">Read our guide to HTML</a>
Use descriptive link text for accessibility and SEO
<form>
<label for="email">Email:</label>
<input type="email"
id="email"
required>
<label for="password">Password:</label>
<input type="password"
id="password"
required>
<button type="submit">Login</button>
</form>
Screen readers understand page structure
Search engines rank your content better
Code is easier to understand and maintain
Properly nested = easier to spot errors
<div>
<p>Indented</p>
</div>
Every opening tag needs a closing tag
<p>...</p> ✅<p>... ❌Tags must close in reverse order
<div><p>...</p></div> ✅
<div><p>...</div></p> ❌
Inspect element to see the DOM structure
Use W3C Validator to catch errors
validator.w3.org
Hero section: Your name, tagline, photo (optional)
About section: Short paragraph about yourself
Skills list: Use <ul> with at least 5 skills
Contact link: Email or social media link
Use semantic HTML: header, main, section, footer
Transform your HTML into beautiful designs
✅ Complete Homework 2
⏱️ Practice coding 30 minutes daily
💬 Ask questions in WhatsApp group