Write a code to change the color of the background or text? Explain the elements involved in it?

Asked: Apr 15, 2023

To change the color of the background of the body or the text there is a <body> tag that has to be included where there are some elements that has to be used to set the properties of it.

The code is as follows:

<html><head></head><BODY BGCOLOR="#ffffff" TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#ffff00"></body></html>

he elements that are used in this tag is as follows:

  1. BGCOLOR : Represents the background color which will be applied totally on the body if there is no other bgcolor used with any other tag internally.
  2. TEXT : Represents the color of the text that will be applied to the complete text present in the body.
  3. LINK : Represents the color of all the text links that are present inside the body.
  4. VLINK : Represents the color of the links that has already been visited.

5. ALINK : Represents the color of the text links that will change when the page accessed will be active.

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!