answersLogoWhite

0

The attribute that defines a color?

Updated: 12/21/2022
User Avatar

Wiki User

13y ago

Best Answer

For background color it is bgcolor and is inside the body tag:

bgcolor="somecolor">

Replace somecolor with the color you want and don't forget the quotation marks.

For text color, use :

color="somecolor">text here

Again, replace somecolor with the color and don't forget the quotes. You can also specify size and typeface with . You will have to retype the entire thing if you want to use that font style again. If you don't want to do that, just use styling.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: The attribute that defines a color?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What attribute defines the width of an image measured in pixels?

width attribute


How do you you use a word attribute in a sentence?

In computing, an attribute is a specification that defines a property of an object, element, or file.


Which attribute specifies the name of the image to display in HTML?

There is an attribute which defines the name of the image to be displayed. The attribute is called as ALT or alternate.


What style attribute will change the color of the text of a tag?

The attribute color :)


What Attribute defines the style of a link when the mouse pointer moves over the link?

Rollover?


Defines the color of characters?

Font color


When formatting defines the hue of the characters?

color or font color


Defines the hues of the characters?

Color


What defines the hue of the characters?

color


Differences between metadata and attribute data?

Metadata describes the characteristics of data, such as its format, source, and creation date, while attribute data provides specific values and properties of the data, such as the size, color, or location. Metadata is essentially data about the data, providing context and information on how to interpret and use the data, while attribute data is the actual content or values within the dataset.


The color of a hyperlink that has not been clicked can be specified by setting what attribute in the BODY HTML tag?

The color of a hyperlink that has not been clicked can be specified by setting the "BGCOLOR" attribute in the HTML tag.


How do you change the color of a line in web htlm?

Use the color attribute in the hr tag like this: