Attributes of Body Tag

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>
*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

<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
  1. Introduction to HTML
  2. HTML document structure
  3. Creating an HTML document
  4. Containers and empty elements
HTML Elements
  1. HTML, HEAD, TITLE, BODY
  2. Attributes of Body Element: Background, Bgcolor, Text, Link, Alink, Vlink, Leftmargin, Topmargin
  3. FONT (Attributes of FONT Element: Color, Size, Face)
  4. IMG (Attributes of IMG Element: Src, Width, Height, Alt, Align)
  5. BASEFONT (Attributes of BASEFONT Element: Color, Size, Face)
  6. CENTER, BR
  7. HR (Attributes of HR Element: Width, Align, Noshade, Color, Size, Face)
  8. H1-H6 (Heading Elements)
  9. P (Paragraph), B (Bold), I (Italics), U (Underline)
  10. UL (Unordered List) Attributes of UL: Type 
  11. OL (Ordered List) Attributes of OL: Type, Start
  12. Linking Internal and External Linking
  13. A (Anchor) Attributes of A Element: Href, Title, Name, Alt
  14. TABLE (Attributes of TABLE Element: Td, Th, Tr)