Hello World!Element ContentAnatomy of HTML5 Tags
HTML (HyperText Markup Language) gives structure to every webpage on the Internet using tags.
🏷️ What is an HTML Tag & Element?
An HTML element starts with an Opening Tag, contains content inside, and finishes with a Closing Tag.
<h1 class="title">Opening Tag + Attribute</h1>Closing Tag📄 Standard Document Boilerplate
<!DOCTYPE html>- Tells browser this is modern HTML5<html>- Root element wrapping all web code<head>- Metadata, title, fonts & styles (invisible)<body>- All visible elements rendered on screen
🎓 Winet's Presenter Notes:
Analogy to use: HTML is the skeleton of a building (beams and walls). CSS is the paint and interior design. JavaScript is the electricity and plumbing that makes things interactive!
Headings & Text Formatting
Structure your text hierarchy using headings <h1> to <h6> and add inline text emphasis.
✍️ Essential Text Tags
| Tag | Purpose |
|---|---|
<h1> - <h6> | Headings (1 is largest/most important) |
<p> | Standard paragraph text block |
<strong> | Bold text (high importance) |
<em> | Italic text (emphasis) |
<mark> | Highlighted text background |
<code> | Inline monospace code snippet |
<blockquote> | Indented quote block |
<br> / <hr> | Line break / Horizontal rule divider |
🎓 Winet's Presenter Notes:
SEO Best Practice Rule: Use only ONE `
` tag per page for the main title. Use `` for major sections and `` for sub-sections!
` for sub-sections!
Lists & Structured Content
Organize content into bulleted, numbered, or definition lists.
📋 3 Types of HTML Lists
1. Unordered List <ul>
Bullet points for items where order doesn't matter (e.g. Shopping List).
<ul> <li>Item</li> </ul>
2. Ordered List <ol>
Numbered sequence for step-by-step instructions (e.g. Recipes).
<ol> <li>Step 1</li> </ol>
3. Description List <dl>
Terms <dt> paired with definitions <dd> (e.g. Glossaries).
<dl> <dt>Term</dt> <dd>Def</dd> </dl>
🎓 Winet's Presenter Notes:
Explain list nesting: You can put a `
- ` inside an `
- ` to create sub-bullet lists! Lists are also commonly styled with CSS to build site navigation menus.
Links & Web Navigation
The anchor tag <a href="..."> turns text or images into clickable links across the Web.
🔗 Anchor Attributes (`href` & `target`)
href="https://..."
target="_blank"
href="mailto:user@site.com"
href="#section-id"
🎓 Winet's Presenter Notes:
Security Tip: When using `target="_blank"`, it's best practice to add `rel="noopener noreferrer"` to prevent malicious external sites from accessing `window.opener`!
Images, Audio & Video
Embed rich multimedia content natively using HTML5 tags without third-party plugins.
🖼️ Image & Media Elements
<img src="pic.jpg" alt="Description">
Self-closing tag. The `alt` attribute is crucial for screen-readers & SEO!
<audio controls src="audio.mp3">
Renders a native audio player with play/pause and volume controls.
<video controls width="100%" poster="thumb.png">
Renders a video player supporting HTML5 MP4/WebM files.
🎓 Winet's Presenter Notes:
Accessibility Rule: Always include meaningful `alt` text on images! If an image fails to load or if a visually impaired student uses a screen reader, `alt` describes what the image shows.
HTML5 Semantic Layout
Semantic elements describe their meaning to both the browser and developer, replacing generic <div> soup!
🏗️ Semantic Page Layout Tags
<header> Logo & Banner<nav> Navigation Links<main> Primary Content
<section> & <article><aside> Sidebar<footer> Copyright & Links🎓 Winet's Presenter Notes:
Why avoid "div soup"? A page filled with 50 nested `
Forms, Inputs & Labels
HTML forms collect data from users using specialized input controls.
📝 Essential Form Controls
<form action="..." method="POST"> Form container<label for="user-id"> Connects label text to input ID<input type="text|email|password"> Text entry fields<input type="checkbox|radio"> Selection controls<input type="range|color|date"> HTML5 interactive pickers<select> <option> Dropdown select menu<button type="submit"> Form submit button🎓 Winet's Presenter Notes:
Always pair `
HTML Tables & Data Grids
Format grid-based tabular data cleanly using semantic table tags.
📊 Table Tags & Attributes
| Tag / Attribute | Description |
|---|---|
<table> | Main table container element |
<thead> / <tbody> | Table Header vs Table Body sections |
<tr> | Table Row (contains cells) |
<th> | Header cell (bold, centered by default) |
<td> | Standard Data cell |
colspan="2" | Spans cell across multiple columns |
rowspan="2" | Spans cell across multiple rows |
🎓 Winet's Presenter Notes:
Important rule: Only use `