HTMLHTML · Lesson 1 of 8
Your First Web Page
HTML is what web browsers read. Create a .html file, open it in a browser, and you've made a web page. No server required.
An HTML document has a specific structure. The DOCTYPE declaration tells browsers this is HTML5. The html element is the root. head contains metadata (not shown on page). body contains the visible content.
HTML uses tags to mark up content. Tags come in pairs: an opening tag <p> and a closing tag </p>. The content goes between them. Some tags are self-closing (like <br> and <img>). Every tag has a meaning — use the right tag for the right content.
◆ Note
Use semantic tags: <strong> means "important" (usually bold), <em> means "emphasized" (usually italic). Don't use <b> and <i> — they only describe appearance, not meaning. Meaning-based markup is better for accessibility and SEO.
Use semantic tags: <strong> means "important" (usually bold), <em> means "emphasized" (usually italic). Don't use <b> and <i> — they only describe appearance, not meaning. Meaning-based markup is better for accessibility and SEO.