Module 2: HTML Fundamentals
- Write a valid basic HTML document structure
- Use common tags correctly for headings, paragraphs, links, images, and lists
- Apply semantic HTML elements appropriately
HTML, HyperText Markup Language, structures content using nested tags, such as <h1> for a main heading, <p> for a paragraph, <a href="..."> for a link, and <img src="..."> for an image; every valid HTML document needs a basic skeleton of <!DOCTYPE html>, <html>, <head>, and <body> tags. Semantic HTML means choosing tags that describe their meaning, not just their appearance -- using <nav> for navigation, <header> for a page header, and <article> for a self-contained piece of content, rather than generic <div> tags for everything. Writing semantic HTML matters beyond style: it helps search engines understand page content, supporting SEO, and helps screen readers used by visually impaired visitors navigate the page correctly, making accessibility a byproduct of good structure.
1. Using semantic tags like <nav> and <article> instead of generic <div> tags mainly helps:
2. Which tag is used to create a hyperlink in HTML?
3. Every basic HTML document should begin with: