HTML (HyperText Markup Language) is the foundation of web development. Learn the essentials to create your first webpage!
📝 1. HTML Document Structure
Every HTML file starts with the basic structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Header</h1>
<p>Paragraph text.</p>
</body>
</html>
📦 2. Common HTML Elements
Element | Description | Example |
---|---|---|
<h1> -<h6> |
Headings | Heading |
<p> |
Paragraphs | Content |
<a> |
Hyperlinks | CSS Tutorial |
<img> |
Images | ![]() |
🛠 3. Attributes & Values
Add properties to tags using attribute="value"
:
<p style="color:red;">Red Text</p>
<a href="https://example.com" target="_blank">External Link</a>
💡 4. Tips for Beginners
- Start with simple tags and build gradually
- Use
<strong>
for important text - Add comments with
<!-- -->
- Explore more at /en/tutorials/html_advanced