Computer Applications
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:
- bgcolor — It specifies the background colour of the web page.
- text — It defines the text colour of the web page.