Page 21 - PortGPT_V2.1_C7_Flipbook
P. 21
Tags Description
The <HTML> tag tells the web browser that the text contained between
<HTML> <HTML> and </HTML> is a web page and can be viewed using a web
browser.
The <HEAD> tag represents the header area of the document. It contains
<HEAD> information about the document title, scripts and style definitions used in
the document.
The <TITLE> tag represents the title of the document and is used inside the
<TITLE> <HEAD> tag. It appears on the title bar of the browser window. If you do
not want to give title to your web page, you can skip it.
The <BODY> tag defines that section of the HTML document which is visible
on the web browser. It contains all other tags that define the content
<BODY
presentation elements such as images, lists, tables, text and links to move
between the webpages.
HTML5 provides different types of tags. For example, tag to create different types of headings, to
create a paragraph, to insert a line break, to add a horizontal line, etc. Let us learn about some of
them in detail.
The <Hn> Tag
Every chapter in a book has various headings and sub-headings. These are known as levels of headings.
The heading tags are used to give similar effect to your web page. These are container tags with a
start tag and an end tag. HTML can define up to 6 levels of headings from h1 to h6. h1 is the first level
of heading and h6 is the last level of heading/sub-heading. Let us create a web page using heading
tags.
The web browser displays each heading with a different heading size.
More on HTML5 19

