HTML Tutorial
HTML is the language that gives every web page its structure. It's the first thing every web developer learns, and it's the best starting point if you've never written code before. This free course takes you from zero to building and publishing your own website in 42 short lessons.
Each lesson focuses on one topic, uses examples from everyday Filipino life, and has a Try it yourself editor so you can change the code and see the result immediately. At the end of every lesson there's a short Taglish summary and a quick quiz.
Who this course is for
- Junior high school students taking TLE ICT or Computer Programming
- Senior high school students in the TVL-ICT strand or any track with a computer subject
- College freshmen, career shifters, small business owners and anyone curious about how websites work
No experience is needed. You only need a browser — a phone is enough.
How to study
- Go in order. Each lesson builds on the ones before it.
- Don't just read the examples — open them, change them, and break them on purpose. That's how you learn what each part does.
- Take the quiz at the end. Getting every answer right marks the lesson as done in the sidebar. You can also tick "I finished this lesson" yourself.
- When you finish a group of lessons, try making a small page of your own in the Playground.
All lessons
Getting Started
- What Is HTML? An Introduction for BeginnersLearn what HTML is, what it does in a web page, and how a browser reads it. Simple explanations and examples for Filipino students.
- Getting Started — Writing Your First HTML FileHow to write, save and open your first HTML file using Notepad, VS Code, or just your phone. Step-by-step for students with or without a laptop.
- The Basic Structure of an HTML PageUnderstand the parts every HTML page needs — doctype, html, head and body — and how tags are nested inside each other like boxes.
- HTML Elements and Tags ExplainedLearn the difference between tags and elements, opening and closing tags, empty (void) elements like br and img, and how to nest elements properly.
- HTML Attributes — Adding Extra Information to ElementsLearn what HTML attributes are, how to write them correctly with quotes, and the most common ones like href, src, alt, title, lang, id and class.
Text
- HTML Headings (h1 to h6)How to use HTML headings h1 to h6 correctly, why heading order matters for Google and screen readers, and common mistakes students make.
- HTML Paragraphs, Line Breaks and Preformatted TextLearn how to write paragraphs with the p element, when to use br for line breaks, and how pre keeps spaces for poems and code.
- HTML Text Formatting — Bold, Italic, Highlight and MoreFormat text in HTML with strong, em, b, i, mark, small, del, ins, sub and sup. Learn the difference between strong and b, and em and i.
- HTML Quotations, Citations and AbbreviationsUse blockquote, q, cite, abbr and address in HTML to quote people, credit sources and explain abbreviations like DepEd and LGU.
- HTML Comments — Notes in Your CodeLearn how to write HTML comments, use them to organize code and temporarily hide parts of a page, and why you should never put secrets in comments.
- HTML Computer Code Elements — code, kbd, samp, var and preShow code, keyboard keys, program output and math variables the right way, using the code, kbd, samp, var and pre elements.
- HTML Entities and Symbols (₱, ©, < and More)Learn how to show special characters in HTML using entities — the peso sign, copyright, less-than, non-breaking spaces, ñ and emoji.
- HTML Symbols, Emojis and Character Sets (UTF-8)Add the peso sign, arrows, math symbols and emojis to your pages, and learn why UTF-8 makes ñ, é and 😀 work on every device.
Style & Color
- HTML Styles — Changing How Things LookLearn the style attribute and your first CSS properties — color, background-color, font-size, font-family and text-align — plus the style element in the head.
- HTML Colors — Names, HEX and RGBLearn the three common ways to write colors on the web — color names, HEX codes and RGB — with examples using the colors of the Philippine flag.
Links & Media
- HTML Links — Connecting Pages TogetherCreate links with the a element and href. Learn absolute vs relative links, opening in a new tab, jump links, email and phone links, and good link text.
- HTML File Paths — Linking to Files in Other FoldersUnderstand relative and absolute file paths in HTML, how to point to files in subfolders and parent folders with ../, and fix broken images and links.
- HTML Images — Adding Pictures to Your PageAdd images with the img element. Learn src, alt, width and height, image formats (JPG, PNG, SVG, WebP), figure and figcaption, and how to keep pages fast.
- HTML Audio and VideoAdd sound and video to a web page with the audio and video elements. Learn controls, autoplay rules, poster images, file formats and captions.
- HTML Iframes — Embedding YouTube Videos and MapsUse the iframe element to embed YouTube videos, Google Maps and other pages in your site. Learn title, width, height, lazy loading and safety tips.
Lists & Tables
- HTML Lists — Unordered, Ordered and Description ListsMake bulleted lists with ul, numbered lists with ol, and description lists with dl. Learn nested lists, list attributes and when to use each type.
- HTML Tables — Rows, Columns and HeadersBuild HTML tables with table, tr, th and td. Learn table headers, captions, borders and when tables should (and should not) be used.
- HTML Tables Part 2 — colspan, rowspan, thead, tbody and tfootMerge table cells with colspan and rowspan, group rows with thead, tbody and tfoot, and build a real class schedule and grade sheet.
Page Structure
- Block and Inline Elements — div and spanUnderstand how block and inline elements flow on a page, and how to use div and span as containers for grouping and styling content.
- HTML class and id AttributesLearn the difference between class and id in HTML, how to style them with CSS, use multiple classes, and link to an id. With easy school examples.
- HTML Semantic Elements — header, nav, main, section, article, footerLearn semantic HTML elements like header, nav, main, section, article, aside and footer, and why meaningful structure helps SEO and accessibility.
- HTML Page Layout — Building a Complete PageCombine semantic HTML and a little CSS Flexbox to build a real page layout with a header, navigation, content area, sidebar and footer.
- The HTML Head — title, meta, link and FaviconsWhat goes inside the HTML head — title, meta charset, viewport, description, Open Graph tags for Facebook sharing, favicons, and linking CSS files.
- Responsive Web Design Basics — Pages That Fit Every ScreenMake your HTML pages work on phones, tablets and computers using the viewport meta tag, flexible images, relative units and media queries.
Forms
- HTML Forms — Collecting Information from UsersLearn how HTML forms work — the form element, inputs, labels, name, the submit button, and what action and method (GET and POST) mean.
- HTML Input Types — Text, Email, Number, Date, Checkbox and MoreA tour of HTML input types — text, password, email, number, tel, date, color, range, file, checkbox and radio — with examples and when to use each.
- HTML Form Elements — select, textarea, button and datalistLearn the other form elements — dropdowns with select and option, multi-line text with textarea, buttons, datalist suggestions, and output.
- HTML Form Validation — required, min, max, patternUse built-in HTML validation — required, minlength, maxlength, min, max, step and pattern — to catch mistakes before a form is submitted.
- HTML Buttons, Details, Dialog, Progress and MeterMake buttons, show-and-hide sections, pop-up dialogs, progress bars and gauges using built-in HTML elements, with very little or no JavaScript.
Graphics & Scripts
- HTML and JavaScript — Your First ScriptLearn how JavaScript connects to HTML with the script element, change text when a button is clicked, and know where to put your scripts.
- HTML SVG Graphics — Draw Shapes with CodeDraw circles, rectangles, lines, text and even a Philippine flag directly in HTML with SVG, graphics that stay sharp at any size.
- HTML Canvas — Drawing with JavaScriptUse the canvas element and a few lines of JavaScript to draw shapes, text, gradients and a simple bar chart of class grades.
Going Further
- HTML Accessibility — Websites Everyone Can UseMake web pages usable by everyone, including people with disabilities. Learn alt text, headings, labels, contrast, keyboard use and a simple checklist.
- HTML Web APIs — Web Storage, Geolocation and MoreDiscover the built-in browser features you can use from a web page, like saving data with localStorage, finding the user's location, and copying to the clipboard.
- Putting Your Website Online for FreeHow to publish an HTML website for free using GitHub Pages or Netlify, what domains and hosting are, and a checklist before you share your site.
- HTML Style Guide — Writing Clean, Professional CodeSimple rules for neat, readable HTML that teachers, teammates and future you will thank you for — lowercase tags, indentation, quotes, file names and more.
- Final Project: Build Your Own Personal Web PagePut everything together and build a complete personal profile page with HTML and a bit of CSS — step by step, with a rubric and ideas to go further.
After the course
Keep the HTML Tag List open as a quick reference when you build your own pages. The next course, CSS, will teach you how to design beautiful layouts for the HTML you now know how to write.