Structure of an HTML Document

The commencement of an HTML document includes a declaration that specifies the version of HTML in which the page is composed. Subsequently, the document is divided into two segments; the head and the body. The <head> section contains metadata and references to scripts and stylesheets while the <body> section houses the content for users, on the page.

Example HTML Document:

<!DOCTYPE html>
<html>
<head>
    <title>Sample Page</title>
</head>
<body>
    <h1>Welcome to My Website</h1>
    <p>This is a sample HTML page.</p>
</body>
</html>

logo

HTML

Structure of an HTML Document

Beginner 5 Hours

The commencement of an HTML document includes a declaration that specifies the version of HTML in which the page is composed. Subsequently, the document is divided into two segments; the head and the body. The <head> section contains metadata and references to scripts and stylesheets while the <body> section houses the content for users, on the page.

Example HTML Document:

<!DOCTYPE html>
<html>
<head>
    <title>Sample Page</title>
</head>
<body>
    <h1>Welcome to My Website</h1>
    <p>This is a sample HTML page.</p>
</body>
</html>

Similar Data Science Tutorials

Related tutotials

Frequently Asked Questions for html

line

Copyrights © 2024 letsupdateskills All rights reserved