Sarthaks APP
0 votes
in Web Technology by (31.7k points)
closed by

Explain the use of <BODY> tag and list any four of its attributes.

1 Answer

+1 vote
by (31.9k points)
selected by
Best answer

Web page contents are given in the body section. 

Attributes of body tag are:

1. BGCOLOR - Specifies background color for the document Body


2. BACKGROUND - Sets the image as background for the document body

Eg. <BODY BACKGROUND="C\result.jpg">

3. TEXT- Specifies the color of the text content of the page

Eg. <BODYTEXT ="Red">

4. LINK- Specifies colour of the hyperlinks that are not visited by the user 

5. ALINK- Specifies the colour of hyperlinks

6. VLINK- Specifies the color of hyperlinks which are already visited by the viewer.

Eg. <BODY ALINK="Cyan" LINK="Magenta" VLINK="Orange">*

7. Left margin and Right margin- Sets margin from left and top of the document window.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.