Lesson 1: Introduction to HTML
HTML is the standard markup language for creating web pages. It structures the content using elements called tags.
Basic HTML Structure
<!DOCTYPE html>
<html lang="en">
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first webpage.</p>
</body>
</html>
Explanation:
<!DOCTYPE html>: Declares the document as HTML5.<html lang="en">: Root element, with language attribute.<head>: Contains meta-information (not displayed).<body>: Contains the content visible to users.<h1>: Main heading.<p>: Paragraph text.
Exercise:
- Create a new HTML file.
- Add your name as a heading.
- Add a short paragraph about yourself.