// The foundation of every website.
HTML IS THE SKELETON OF THE WEB.
Every website you've ever visited starts with HTML. It defines the structure, the semantics, and the meaning of content. Without HTML, there is no web.
WHY HTML MATTERS
HTML is not about presentation—it's about meaning. When you use semantic HTML, you create accessible content that works for everyone: screen readers, search engines, and all devices.
MASTER THE MARKUP.
Learn to structure documents properly, create accessible forms, and use the full power of HTML5. Every web developer must know HTML inside and out.
12 lessons. Complete HTML control.
Learn what HTML is and create your first webpage.
BeginnerUnderstand DOCTYPE, head, and body elements.
BeginnerFormat text and create document hierarchy with headings.
BeginnerCreate hyperlinks and navigate between pages.
BeginnerAdd images, video, and audio to your pages.
BeginnerCreate ordered, unordered, and definition lists.
BeginnerDisplay tabular data with rows and columns.
IntermediateCollect user data with form controls and validation.
IntermediateUse meaningful elements for better structure and accessibility.
IntermediateLeverage modern HTML5 elements and new input types.
IntermediateMake your websites usable by everyone including screen readers.
AdvancedFollow standards, validate markup, and optimize for SEO.
AdvancedHTML (HyperText Markup Language) is the standard markup language for documents designed to be displayed in a web browser. It was created by Tim Berners-Lee in 1991 and has evolved through several versions, with HTML5 being the current standard since 2014.
HTML is not a programming language—it's a markup language that defines the structure of your content. When combined with CSS for styling and JavaScript for interactivity, you have the complete web development stack.
The web starts with HTML. Master it first.
HTML (HyperText Markup Language) is the standard markup language for creating web pages. It describes the structure of a web page and consists of a series of elements or tags.
1. HTML stands for _____ Markup Language.
Hint: Not just text
2. The visible content goes in the _____ tag.
Hint: Not head
3. The _____ element contains page metadata.
Hint: Contains title
4. HTML elements are wrapped in _____.
Hint: Angle brackets
Every HTML document must start with a DOCTYPE declaration. This tells the browser which version of HTML to use. For HTML5, it's simple:
The <html> element is the root element that wraps all content. Always include the lang attribute for accessibility and SEO:
The <head> contains metadata about the document. This information isn't displayed but is crucial for SEO, styling, and functionality:
1. _____ tells the browser which HTML version to use.
Hint: First line of document
2. The _____ attribute specifies the language.
Hint: On html element
3. _____ is the standard character encoding.
Hint: Unicode
4. The _____ meta tag enables responsive design.
Hint: Mobile-friendly
Headings define the structure and hierarchy of your content. There are six levels, from h1 (most important) to h6 (least important):
1. _____ is the most important heading.
Hint: Main title
2. You should use only _____ h1 per page.
Hint: Single main topic
3. _____ indicates strong importance.
Hint: Bold semantic
4. _____ indicates emphasis.
Hint: Italic semantic
The anchor element creates hyperlinks to other pages, files, or locations within the same page. The href attribute specifies the destination:
Use target="_blank" to open links in a new tab. For security, always add rel="noopener noreferrer":
Use semantic elements for navigation menus:
1. The _____ attribute specifies the link destination.
Hint: Hypertext reference
2. _____ opens a link in a new tab.
Hint: Target attribute value
3. The _____ element defines navigation links.
Hint: Navigation
4. _____ prevents security vulnerabilities.
Hint: rel attribute value
The image element embeds pictures in your page. It requires the src attribute and should always include alt text:
1. The _____ attribute specifies the image path.
Hint: Source
2. The _____ attribute provides alternative text.
Hint: Accessibility
3. The _____ element groups images with captions.
Hint: With figcaption
4. loading="_____" defers loading until needed.
Hint: Opposite of eager
For bullet points where order doesn't matter:
For numbered sequences where order matters:
For key-value pairs like glossaries:
1. _____ is for unordered bullet lists.
Hint: Unordered list
2. _____ is for ordered numbered lists.
Hint: Ordered list
3. _____ is the list item element.
Hint: List item
4. _____ is for definition lists.
Hint: Definition list
Tables display tabular data in rows and columns:
1. _____ is the container for tabular data.
Hint: Main table element
2. _____ defines a table row.
Hint: Table row
3. _____ is a header cell element.
Hint: Table header
4. _____ is a standard data cell.
Hint: Table data
Forms collect user input and send it to a server:
1. The _____ element is the container for form controls.
Hint: Main form element
2. The _____ element describes form controls.
Hint: Uses for attribute
3. The _____ attribute makes a field mandatory.
Hint: Must fill
4. _____ is for multiline text input.
Hint: Long text
Semantic HTML uses elements that describe the meaning of content, not just its appearance. This makes your code more readable, accessible, and SEO-friendly.
1. The _____ element contains introductory content.
Hint: Site/page intro
2. The _____ element contains navigation links.
Hint: Menu links
3. The _____ element is for self-contained content.
Hint: Blog post
4. The _____ element contains the main content.
Hint: Primary content
HTML5 introduced many new input types with built-in validation:
Store custom data in HTML elements:
Create disclosure widgets without JavaScript:
1. _____ attributes store custom data.
Hint: data- prefix
2. _____ creates disclosure widgets without JS.
Hint: With summary child
3. The _____ attribute shows hint text in inputs.
Hint: Example text
4. _____ shows task completion.
Hint: Loading bar
Web accessibility ensures people with disabilities can use your website. It benefits everyone and is often legally required:
ARIA enhances accessibility for complex UI:
1. _____ text makes images accessible.
Hint: Alternative
2. _____ attributes enhance accessibility.
Hint: Accessible Rich Internet Applications
3. _____ elements describe form controls.
Hint: for attribute
4. Color _____ ensures text is readable.
Hint: Difference between colors
Always validate your HTML using the W3C Validator. Valid HTML works better across browsers:
| Practice | Implementation |
|---|---|
| Unique h1 per page | One main heading |
| Meta description | 150-160 characters |
| Semantic HTML | Proper elements |
| Alt text | For every image |
1. Every document needs a _____ declaration.
Hint: First line
2. Use _____ HTML for better SEO.
Hint: Meaningful elements
3. _____ ensures HTML is correct.
Hint: W3C process
4. Keep structure, presentation, and behavior in _____.
Hint: Separate concerns