About Lesson
HTML Document Structure
Definition:
HTML stands for Hyper Text Markup Language. It is the common markup language for web page creation. HTML documents are structured using a series of elements that describe the content and layout of a web page. The basic structure of an HTML document consists of two main sections: the head and the body.
The head section contains information about the document, such as the title of the page, version of HTML, and meta tags. The body section contains everything that is displayed on the web page, such as text, images, videos, and links.
All HTML documents must start with a document type declaration: <!DOCTYPE html>.
Examples:
HTML
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>