Lesson 1: Introduction to HTML
What is HTML?
HTML (HyperText Markup Language) is the standard language for creating web pages. It provides the basic structure of a website by using a series of elements and tags.
Basic HTML Structure
An HTML document has a simple structure, which includes the following parts:
<!DOCTYPE html>
- Declares the document type and version of HTML.<html>
- The root element of an HTML document.<head>
- Contains meta-information about the document, like the title and links to stylesheets.<body>
- Contains the content of the document, such as text, images, and links.
Example HTML Document
<!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 Hello, World!</h1>
<p This is my first HTML page.</p>
</body>
</html>
Practice Exercise
Create your own simple HTML page using the structure shown above.use Visual Studio Code. Include a title, a heading, and a paragraph of text.
Next Lesson: HTML Elements