CBSE Class 10 Computer Applications Question 121 of 176

HTML I — Basic HTML Elements — Question 20

Back to all questions
20
Question

Question 16

What is the use of <BODY> tag in HTML code ? Write any two attributes used with this tag.

Answer

The <BODY> tag defines a document's body. It contains all the contents of an HTML document, such as the text, images, lists, tables, hyperlinks etc.

The two attributes used with this tag are:

  1. bgcolor — It specifies the background colour of the web page.
  2. text — It defines the text colour of the web page.