HTML Introduction
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 markup tags.
Did you know?
HTML was first created by Tim Berners-Lee in 1990 and has evolved significantly since then.
Key Features of HTML:
- Easy to learn and use
- Platform independent
- Supports multimedia
- Free and open standard
HTML Document Structure
Every HTML document has a basic structure that includes the following elements:
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First HTML Page</title>
</head>
<body>
<h1>Welcome to HTML!</h1>
<p>This is my first HTML page.</p>
</body>
</html>
Code Explanation:
<!DOCTYPE html>
- Declares the document type<html>
- Root element of the page<head>
- Contains metadata about the document<body>
- Contains the visible content
Try It Yourself
Use the interactive editor below to practice HTML: