Meta Description" name="description" />
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Hello!</h1>
<p>This is text.</p>
</body>
</html>
Save this as mypage.html on your computer. Open it in Chrome or Firefox – you see a page!
Try It
Add your name in <h1>. Change the text in <p>. Show me your code next. Then we learn colors with CSS.
what is HTML tag
HTML tags are simple instructions wrapped in angle brackets < > that tell the web browser how to show content on a page.
They usually come in pairs: an opening tag like <p> to start something (like a paragraph), and a closing tag like </p> to end it, with your text or stuff in between.
Common Examples
<h1>Your Title</h1> makes a big heading.
<p>Your words here.</p> makes normal text.
<img src="pic.jpg"> adds a picture (no closing tag needed).
Try putting <h1>My Name</h1> in your HTML file to see it work!
Follow-ups
Give simple examples of common HTML tags
How to write a basic HTML structure
What are self-closing HTML tags
Difference between HTML elements and tags
Common mistakes beginners make with HTML tags
2
1
1KB
2KB
122.0ms
204.0ms
135.0ms