What is HTML?
HTML (HyperText Markup Language) is the standard markup language for creating web pages. It describes the structure of a web page using elements.
Your First Page
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first page.</p>
</body>
</html>
Common Elements
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<p>A paragraph of text.</p>
<a href="#">A link</a>
<img src="photo.jpg" alt="Photo">
Summary
- HTML uses tags to structure content
- Every page starts with <!DOCTYPE html>
- Common tags: h1-h6, p, a, img, div, span
YouTip