Page 57 - CA_165_V2.0_Flipbook
P. 57
FUNDAMENTAL STRUCTURE OF HTML DOCUMENT
HTML document consists of text that comprises the contents of the document and the tags that define the
structure and appearance of the document. The basic structure of an HTML document can be classified
into different elements or sections.
<HTML>
<HEAD>
<TITLE>
........................
HTML Section HEAD Section ........................ TITLE Section
........................
</TITLE>
</HEAD>
<BODY>
BODY Section ........................
........................
........................
</BODY>
</HTML>
<HTML> Tag
HTML document begins with its header part in which <HTML> tag is used that identifies the document
as an HTML document.
The entire document is written inside <HTML>……</HTML> tags. It marks the beginning and ending of
an HTML coded document. Syntax of the <HTML> tag is as follows:
<HTML> ... ... ... ... </HTML>
<HTML> Tag (Root Element)
Type Function Attributes Contains Used Inside
Container tag An HTML tag lang The <HTML> tag It is used as the
is used to contains the <HEAD> top-level tag in all
define and and <BODY> tags, HTML documents.
format parts which define the
of a web page, metadata and content
like headings, of the web page.
paragraphs, or
links.
Introduction to HTML 55

