Master HTML with Interactive Examples & Live Preview
Learn the skeleton of the web. Explore essential tags, test your code instantly in our interactive browser playground, and test your skills.
HTML Core Concepts
Everything you need to know about how HTML documents are structured.
1. Document Structure
Every webpage starts with a standard boilerplate including <!DOCTYPE html>, <html>, <head>, and <body>.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
2. Tags & Attributes
Tags are enclosed in angle brackets like <p>. Attributes provide extra information about elements, such as href in anchor tags or src in images.
<a href="https://google.com" target="_blank">
Visit Google
</a>
<img src="image.jpg" alt="Example">
3. Semantic HTML
Semantic tags clearly describe their meaning to both the browser and the developer. Examples include <header>, <article>, and <footer>.
<header>
<nav>Logo & Links</nav>
</header>
<main>
<article>Main content</article>
</main>
<footer>Copyright 2026</footer>
Interactive HTML Playground
Type or edit HTML code below and see the live rendering update instantly in the preview panel.
HTML Quick Challenge
Test what you've learned about HTML structure and tags with this quick interactive question.
What does HTML stand for?
Correct! 🎉
HTML stands for Hyper Text Markup Language.