Introduction to HTML
Learn what HTML is, how HTML5 evolved, and why semantic, accessible markup is critical in modern frontend development.
Learn what HTML is, how HTML5 evolved, and why semantic, accessible markup is critical in modern frontend development. This hands-on tutorial focuses on practical implementation of introduction to html concepts.
Introduction to HTML
HTML stands for HyperText Markup Language. It gives content structure so browsers know what each part of a page means.
Lesson Path
- Previous lesson: How the Web Works
- In this lesson: You learn what HTML does and how it partners with CSS and JavaScript.
- Next lesson: HTML Document Structure
Why Developers Start with HTML
HTML is the foundation layer of every web page. It answers questions like:
- Is this text a heading or a paragraph?
- Is this element navigation, an article, a form, or a footer?
- Which content matters most to search engines and assistive technologies?
HTML vs CSS vs JavaScript
| Technology | Role | | --- | --- | | HTML | Structure and meaning | | CSS | Presentation and layout | | JavaScript | Interactivity and behavior |
Think of it this way:
- HTML creates the content skeleton
- CSS styles the skeleton
- JavaScript responds to user actions and data
A Minimal HTML Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Hello HTML</title>
</head>
<body>
<h1>Hello, HTML5</h1>
<p>This is a valid web page.</p>
</body>
</html>
Minimal HTML, Real Browser Output
This is the smallest useful HTML page pattern. Change the content, add a button, or style the body to see how HTML and CSS work together.
Semantic Thinking Starts Early
Professional HTML is not about using lots of tags. It is about choosing the right tag for the job.
Examples:
- Use
<h1>to mark the main heading of the page - Use
<p>for paragraphs - Use
<nav>for navigation links - Use
<button>for actions - Use
<main>for the primary page content
This helps accessibility, SEO, and code readability.
Quiz
Question 1 of 3What is the primary job of HTML?
Practice: Build a Simple Intro Card
Key Takeaways
- HTML is the foundation of the web.
- HTML5 is semantic-first.
- Great markup makes every other layer easier.
Before the Next Lesson
- You know what HTML is responsible for.
- You can explain how HTML, CSS, and JavaScript work together.
- You are ready to understand the production-ready file skeleton.
Next Step
Move on to HTML Document Structure to learn the purpose of DOCTYPE, head, body, metadata, and language settings.
Knowledge Check
Quiz
Question 1 of 2What is HTML mainly responsible for on a web page?