Class 6 HTMLnotes
Class 6 HTMLnotes
1) What is HTML?
Hyper text markup language is used to design and display web pages on the
internet with the help of web browsers.
Structure of HTML
<HTML>
<HEAD>
<TITLE>……………………………………….</TITLE>
</HEAD>
<BODY>
………………………………………………………………..
</BODY>
</HTML>
3)What is meant by HTML tags?
Tags are special codes in an HTML documents. They are marked with angle
brackets (< and >),which is understood by web browser.
1 .Container Tags
2. Empty Tags
Container Tags: These tags in an HTML document are in pairs (start and end
tag).they also known as ON tag and OFF tags. Ex:<TITLE> & </TITLE>
Empty Tags: Empty tags do not require a closing tag in an HTML document.
The content written within the <TITLE> tag does not appear on the webpage
Paragraph tag
The tag defines a paragraph. Browsers automatically add a single blank line
before and after each Element.
Line Break Tag: This tag is used avoid blank spaces between the lines. <BR>
is the line break tag which is an empty tag.
Syntax:
Heading Tags:
There are six different levels of headings which vary from <H1> to <H6>.
<H1> tag defines the most important heading whereas <H6> tag defines the
least important heading.
Syntax:
The superscripts tags are used to represent some text/data above the normal line
and the subscript tags are used to represent the text below the normal line. The
<SUP> tag defines the superscript text and the <SUB> tags explains the
subscript text.
H<SUB>2</SUB>O
Eg2: CaCl2
CaCl<SUB>2</SUB>
Eg3: (a+b)2
(a+b)<SUP>2</SUP>
Eg4: a2 + b3 + c4
a<SUP>2</SUP>+b<SUP>3</SUP>+c<SUP>4</SUP>
Font Tags:
An HTML document provides the facility to change the font, the size and the
colour of the text. Thus the attributes of the font tag include Arial,Tahoma,
Garamond, Verdana etc.
Syntax:
Alignment tags:
Syntax: