Export Document

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

HTML Structure

HTML (Hypertext Markup Language) is the standard markup


language used to create web pages. HTML documents are
comprised of elements that define the structure and content of
a page. Here's a basic overview of the structure of an HTML
document:
Document Type Declaration (DOCTYPE):
• Specifies the HTML version being used. It should be
placed at the very beginning of the HTML document.

<!DOCTYPE html>
HTML Element:
• The root element of an HTML document.

<html>
<!-- Content goes here -->
</html>
Head Element:
• Contains meta -information about the HTML
document, such as the title, character set, and
linked stylesheets or scripts.

<head>
<!-- Metadata, title, stylesheets, scripts,
etc. go here -->
</head>
Title Element:
• Sets the title of the HTML document, which
is displayed on the browser's title bar or tab.

<title>Your Page Title</title>


Body Element:
• Contains the content of the HTML document,
including text, images, links, and other elements.

<body>
<!-- Content of the page goes here -->
</body>
Heading Elements:
• Define headings of different levels (h1 to h6)
for structuring content hierarchically.

<h1>This is a Heading 1</h1>


<h2>This is a Heading 2</h2>
<h6>This is a Heading 6</h6>
Paragraph Element:
• Defines a paragraph of text.

<p>This is a paragraph.</p>

You might also like