Chapter 1 — Introduction to HTML and Web Structure
Every HTML document follows a basic structure that organizes the content of the page. The document begins with a declaration and contains a root <html> element that includes two main sections: the <head>, which stores metadata about the page, and the <body>, which contains the visible content displayed in the browser.
Example: Basic HTML document
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is my first HTML page.</p>
</body>
</html>This structure is the foundation of every HTML webpage.