My PPT - HTML
My PPT - HTML
HTML
Explained By : sneha K M
WHAT IS HTML ?
HTML is a language for describing web pages.
HTML stands for Hyper Text Markup Language
HTML is not a programming language, it is a markup language
A markup language is a set of markup tags
HTML uses markup tags to describe web pages
Pages end with “.htm” or “.html”
WEB BROWSERS
-Paired Tags :A tag is said to be a paired tag if text is placed between a tag
and its companions tag.In paired tag ,the first tag is referred to as opening tag
and the second tag is referred to as closing tag.
-Unpaired Tags: An unpaired tag does not have a companion tag .unpaired
tag also known as singular or Stand-Alone tags.
<br>,<hr> etc.
ATTRIBUTES
<HTML>
<HEAD>
.............
.............
.............
</HEAD>
<BODY>
.............
.............
.............
</BODY>
</HTML>
HEAD Tag <HEAD>
HEAD tag comes after the HTML start tag. It contains TITLE tag
to give the document a title that displays on the browsers title bar
at the top. The Format is:
<HEAD>
<TITLE>
Your title goes here
</TITLE>
</HEAD>
BODY Tag <BODY>
The BODY tag contains all the text and graphics of the document
with all the HTML tags that are used for control and formatting
of the page. The Format is:
<BODY>
Your Document goes here
</BODY>
HEADING: <H1>.............<H6>tags
<HTML>
<HEAD>
<TITLE>
Section Heading
</TITLE>
</HEAD>
<BODY>
<H1> This is Section Heading 1 </H1>
<H2> This is Section Heading 2 </H2>
<H3> This is Section Heading 3 </H3>
<H4> This is Section Heading 4 </H4>
<H5> This is Section Heading 5 </H5>
<H6> This is Section Heading 6 </H6>
</BODY>
</HTML>
Viewing output of HTML document
headings.html in browse
By using <FONT> Tag one can specify the colors, size of the
text. Example:
<FONT> Your text goes here </FONT>
Attributes of <FONT> are:
- COLOR: Sets the color of the text that will appear on the
screen. It can be set by giving the value as #rr0000 for red (in RGB
hexadecimal format), or by name. Example: <FONT
COLOR="RED"> Your text goes here </FONT>
16 BASIC COLORS
Font Colors and Size
SIZE: Sets the size of the text, takes value between 1 and
7, default is 3. Size can also be set relative to default size
for example; SIZE=+X, where X is any integer value and it will add
with the default size.
Example:
<FONT SIZE=5> Font Size changes to 5 </FONT>
FACE: Sets the normal font type, provided it is installed on the
user’s machine.
Example:
<FONT FACE="ARIAL"> the text will be displayed in
Arial</FONT>
MARQUEE TAG
The empty tag <BR> is used, where the text needs to start from a
new line and not continue on the same line. To get every sentence on
a new line, it is necessary to use a line break.
Example:
<BODY>National Institute of Open Schooling <BR>
B-31B, Calipash Colony <BR>
New Delhi-110048</BODY>
Output:
National Institute of Open Schooling
B-31B, Calipash Colony
New Delhi-11004
Using Horizontal Rule Tag: <HR>