HTML tags, Tags, Empty tag, Container tag, Attributes, Structure of HTML document, Head section, body section, comment tags, Font tag, attribute of font tag, More tags on formatting, heading tags, paragraph tag, the paragraph attribute 'align', line break, horizontal tag, line break, backgro...
HTML tags, Tags, Empty tag, Container tag, Attributes, Structure of HTML document, Head section, body section, comment tags, Font tag, attribute of font tag, More tags on formatting, heading tags, paragraph tag, the paragraph attribute 'align', line break, horizontal tag, line break, background tag, text attribute, Marquee tag,
Structure of HTML document
•HTML document has two sections
1.Head Section
2.Body Section
<HTML>
<HEAD>
Head section <TITLE> …………… </TITLE>
</HEAD>
<BODY>
Body section
</BODY>
</HTML>
Tags
•<BIG> ….. </BIG> -displays the text in a font
larger than the font currently being used.
•<small> …… </small> -displays the text in a
font smaller than the font currently being used.
Eg.<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<BIG> ELECTIVE </BIG>
<SMALL> COMPUTERS IN EDUCATION </SMALL>
</BODY>
</HTML>
Attributes of font
FACE
•Fontstylesdisplayedinthebrowsercan
bechangedusingthefaceattribute.
•Faceattributehasavaluewhichisafont
name,enclosedwithindoublequotes.
•Ifthespecifiedfontisnotavailableinthe
system,thendefaultfontwillbeassumed.
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<FONT FACE = “ Arial” SIZE = “5” COLOR = “BLUE”>
ELECTIVE
</FONT>
<SMALL> COMPUTERS IN EDUCATION </SMALL>
</BODY>
</HTML>
More tags on formatting
Bold-The<B>tagisusedtodisplaythetextthicker
anddarkerthannormal.Theendtagis</B>
Italics-TodisplaythetextinItalics,<I>tagisused.
Theendtagis</I>
Underline-The<U>tagisusedtounderlinethetext
inthedocument.</U>istheendtag.
Center-Thetextenclosedwithin<center>…….
</center>tagwillbedisplayedinthecenterofthe
line.
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<FONT SIZE = “5””>
<B>ELECTIVE </B><BR>
<U>ELECTIVE </U><BR>
<I>ELECTIVE </I><BR>
<Center>ELECTIVE </Center><BR>
</FONT>
<SMALL> COMPUTERS IN EDUCATION </SMALL>
</BODY>
</HTML>
Heading tags
•There are six levels of headings from
heading 1 to heading 6 in HTML.
•The heading tags has a start tag and an
end tag.
•H1, H2, H3, H4, H5, H6 are the six levels,
each having its own appearance.
•The headings tags are used to set apart
document text and section subtitles.
Example
<HTML>
<HEAD>
<TITLE> My first html coding </TITLE>
</HEAD>
<BODY>
<H1>ELECTIVE </H1><BR>
<H2>ELECTIVE </H2><BR>
<H3>ELECTIVE </H3><BR>
<H4>ELECTIVE </H4><BR>
<H5>ELECTIVE </H5><BR>
<H6>ELECTIVE </H6><BR>
</BODY>
</HTML>
The paragraph attribute ‘align’
<P align = “left”> -aligns paragraphs to the
left
<P align = “right”> -aligns paragraphs to the
right
<P align = “center”> -aligns paragraphs to
the center
<P align = “justify”> -justifies the paragraphs
to the page