Lesson 1: Introduction to HTML
What is HTML?
HTML stands for HyperText Markup Language. It is the standard language used to create web pages. HTML describes the structure of a web page using a series of elements.
Key Points:
- HTML is not a programming language - it's a markup language
- HTML consists of elements represented by tags
- Browsers use HTML to display web pages
Basic HTML Structure
Every HTML document follows a basic structure:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Understanding the Structure
- <!DOCTYPE html> - Declares that this is an HTML5 document
- <html> - The root element of the HTML page
- <head> - Contains meta information about the document
- <title> - Specifies the title shown in the browser tab
- <body> - Contains the visible page content
💡 Tip: Always save your HTML files with a .html extension, for example: index.html, about.html
Try It Yourself!
Open a text editor (like Notepad on Windows or TextEdit on Mac) and create your first HTML page using the structure shown above. Save it as "mypage.html" and open it in a web browser!