i. BGCOLOR- By using bgcolor attribute of body tag we can change the background color of the HTML document
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY Bgcolor=”Yellow”>
All the tags, attributes of tags and information
</BODY>
</HTML>
ii. BACKGROUND- By using background attribute of body tag we set background picture of the HTML document
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY Background=”Desert.jpg”>
All the tags, attributes of tags and information
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY Bgcolor=”Yellow”>
All the tags, attributes of tags and information
</BODY>
</HTML>
ii. BACKGROUND- By using background attribute of body tag we set background picture of the HTML document
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY Background=”Desert.jpg”>
All the tags, attributes of tags and information
</BODY>
</HTML>
*Note: Save both files (HTML document and Picture) into same folder
iii. TEXT- By using text attribute of body tag we set the text colour of the HTML document
iii. TEXT- By using text attribute of body tag we set the text colour of the HTML document
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY
TEXT=”RED”>
All the
tags, attributes of tags and information
</BODY>
</HTML>
iv). LINK- By using link attribute of body tag we set the colour of the
hyperlink
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY
TEXT=”RED” LINK=”BLUE”>
All the
tags, attributes of tags and information
<A
HREF =”1.HTML”>Link to another HTML document</A>
</BODY>
</HTML>
v). ALINK- By using Alink attribute of body tag we set the colour of the
Alink (Active Link)
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY
TEXT=”RED” LINK=”BLUE” ALINK=”GREEN”>
All the
tags, attributes of tags and information
<A
HREF =”1.HTML”>Link to another HTML document</A>
</BODY>
</HTML>
vi). VLINK- By using Vlink attribute of body tag we set the colour of
the Vlink (Visited link)
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY
TEXT=”RED” LINK=”BLUE” ALINK=”GREEN”
VLINK=”YELLOW”>
All the
tags, attributes of tags and information
<A
HREF =”1.HTML”>Link to another HTML document</A>
</BODY>
</HTML>
vii). LEFTMARGIN- By using Leftmargin attribute of body tag we set blank
area to the left side of the web document.
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY
Leftmargin=”30”>
All the
tags, attributes of tags and information
</BODY>
</HTML>
viii). TOPMARGIN- By using Topmargin attribute of body tag we set blank
area to the top side of the web
document.
<HTML>
<HEAD>
<TITLE>
Title of the document
</TITLE>
</HEAD>
<BODY
Topmargin=”50”>
All the
tags, attributes of tags and information
</BODY>
</HTML>UNIT-205
HTML Fundamentals
HTML Elements
HTML Fundamentals
HTML Elements
- HTML, HEAD, TITLE, BODY
- Attributes of Body Element: Background, Bgcolor, Text, Link, Alink, Vlink, Leftmargin, Topmargin
- FONT (Attributes of FONT Element: Color, Size, Face)
- IMG (Attributes of IMG Element: Src, Width, Height, Alt, Align)
- BASEFONT (Attributes of BASEFONT Element: Color, Size, Face)
- CENTER, BR
- HR (Attributes of HR Element: Width, Align, Noshade, Color, Size, Face)
- H1-H6 (Heading Elements)
- P (Paragraph), B (Bold), I (Italics), U (Underline)
- UL (Unordered List) Attributes of UL: Type
- OL (Ordered List) Attributes of OL: Type, Start
- Linking Internal and External Linking
- A (Anchor) Attributes of A Element: Href, Title, Name, Alt
- TABLE (Attributes of TABLE Element: Td, Th, Tr)