Welcome to the HTML Basics series! This guide will walk you through the essentials of HTML, the backbone of every website. Whether you're a beginner or just brushing up, you'll find clear explanations and examples here.
What is HTML? 📘
HTML (HyperText Markup Language) is the standard language used to create web pages. It defines the structure and content of a webpage using tags. For example:
<h1>
for main headings<p>
for paragraphs<a>
for hyperlinks
📌 Tip: HTML is not a programming language but a markup language. It tells browsers how to display content.
Basic Structure of an HTML Document 📁
Every HTML document starts with the following structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
- 🔍 Doctype: Declares the document type (HTML5)
- 🏠 html: Root element containing all content
- 📚 head: Contains metadata like the title
- 🧬 body: Holds the visible content of the page
Common HTML Elements 🧩
Here are some frequently used elements:
- Paragraphs:
<p>This is a paragraph.</p>
- Headers:
<h1>Heading 1</h1>
,<h2>Heading 2</h2>
- Links:
<a href="/en/series/html-advanced">Learn More</a>
- Images:
<img src="https://cloud-image.ullrai.com/q/web_structure/" alt="Web Structure"/>
🎉 Pro Tip: Use semantic tags like
<header>
,<footer>
, and<section>
to improve accessibility and SEO.
Expand Your Knowledge 🚀
Want to dive deeper? Explore these resources:
- /en/series/html-advanced: Advanced HTML techniques
- /en/series/css-styling: Pair HTML with CSS for styling
- /en/tutorials/html5-forms: Modern form elements in HTML5
Practice Makes Perfect 🧠
Try creating your own HTML page! Start with:
- A
<title>
tag in the<head>
- A
<h1>
for the main heading - A
<p>
to add some text - An
<a>
tag to link to another page
If you're stuck, check out our beginner's guide again or ask for help in the community forum.