KnowledgeBoat Logo
|

Computer Applications

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

HTML Intro

6 Likes

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.

Answered By

2 Likes


Related Questions