By the end of this lesson, you will:
<html>, <head>, <body>, <h1>, <p>, and <a>.< >) that define the type of content.Everything you see on a website—from headlines and paragraphs to links and images—is built on HTML. It’s not a programming language, but a markup language, which means it structures and labels content.
Even complex websites rely on HTML at their core. Whether you’re building a portfolio, a business landing page, or the next big app, HTML is your starting point.
This lesson introduces you to the essential building blocks of HTML, helping you confidently create and edit simple web pages.
Every HTML file starts with the same basic skeleton:
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first HTML page.</p>
</body>
</html>
Breakdown:
<!DOCTYPE html>: Tells the browser this is an HTML5 document.<html>: Wraps the entire page.<head>: Contains meta-information (not visible content).<body>: Contains what you see on the page.<h1> to <h6> define importance. Use only one <h1> per page.<p> tags organize body text.<strong> for bold, <em> for italics.Example:
<h2>About Us</h2>
<p>We help beginners learn to code.</p>
<a href="URL"> to link to another page.<img src="image.jpg" alt="Description"> to add visuals.Example:
<a href="https://example.com">Visit Our Site</a>
<img src="logo.png" alt="Our Logo">
<ul> for bullet points.<ol> for numbered items.<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
<div>: Block-level container for grouping content.<span>: Inline container for styling small bits of text.Used heavily when designing layout and applying CSS.
<ul> or <ol>.📚 HTML and CSS: Design and Build Websites – Jon Duckett
📚 Eloquent JavaScript (HTML chapter) – Marijn Haverbeke
🛠 Tools: CodePen, JSFiddle, W3Schools
HTML is the core of web development. By understanding basic tags and structure, you now have the power to build and display content online. Even more complex platforms like WordPress, Shopify, and Webflow all rely on HTML behind the scenes.
Build a basic HTML page using the elements you learned. Include:
Share your code with a peer, online community, or post it as a GitHub Gist within the next 24 hours to get feedback and build momentum.
Not a member yet? Register now
Are you a member? Login now