0% found this document useful (0 votes)
2 views

html_4

An HTML document is structured with key components including <html>, <head>, and <body>. The <head> contains metadata like the document title, while the <body> holds the main content. A basic template is provided to illustrate these elements.

Uploaded by

Bhushan Mahajan
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

html_4

An HTML document is structured with key components including <html>, <head>, and <body>. The <head> contains metadata like the document title, while the <body> holds the main content. A basic template is provided to illustrate these elements.

Uploaded by

Bhushan Mahajan
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

2 Basic Structure of an HTML Document

An HTML document consists of several key components that define its structure.
Every HTML page follows a basic template, which includes essential elements such as
<html>, <head>, and <body>. Below is an example of a simple HTML document:

<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph of text on my first web page.</p>
</body>
</html>

Breakdown of HTML Structure

<!DOCTYPE html>: Declares the document type and version of HTML being used.

<html>: The root element that encloses the entire HTML document.

<head>: Contains metadata such as the document title, character set, and linked
stylesheets or scripts.

<title>: Defines the title of the webpage, which appears in the browser tab.

<body>: Contains the main content of the webpage, including headings, paragraphs,
images, and other elements.

You might also like