answersLogoWhite

0


Best Answer

<font style="background-color: red;">this text will have a red background</font>

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you set background color using font tag?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which property is used to change the font of an element in css?

Using CSS, you can change the background color using the background-color property.To set the body background in an HTML document, you'd use code that looked like this:body { background-color: rgb ( 255, 255, 255 ); }which would set the color to white.You can use any CSS color definition, a named color, a hexadecimal value, rgb, or rgba.


What is the attribute that changes font type?

The font tag has an attribute called "Face" using which you can set the font type. Ex: &lt;Font face = "Verdana"&gt; will display all following text in the Verdana font. You can also set font size and color using this tag. Ex: &lt;Font face = "Verdana" color = "Red" size = "10"&gt; will display text in Verdana font, red color and 10 pixels high in size.


HTML for adding a background color?

It's not HTML. Background color is a CSS style. You need to put in either a stylesheet, or attach the style attribute to the tag whose background color you're trying to set. For instance: &lt;p style="background-color:blue;"&gt;This paragraph would have a blue background.&lt;/p&gt; Colors in CSS can be set using names (there's 170 or so of them) Via a hexadecimal RGB value: &lt;p style="background-color:#b3b3b3;"&gt;This a meduim gray. The pairs of hex digits correspond to RGB.&lt;/p&gt; Using RGB directly: &lt;p style="background-color: rgb(179,179,179);"&gt;This is the same color as #b3b3b3&lt;/p&gt; And using RGBA (which gives you an alpha channel, letting you set transparency) &lt;p style="background-color: rgba( 179, 179, 179, .5 );"&gt;This paragraphs background color would be 50% transparent.&lt;/p&gt;


How do you type HTML color font?

For the entire page, in the body tag you can use the text attribute. So if you wanted the colour to be gold, you would have:For individual elements of the page, you can use the font tag like this:That will continue having the text as gold until the font tag is closed. You can also change colours within tags using the style attribute.This text is red in colour.


What tag can set the background color for your page?

The BODY tag is the one you should reference if you want to set the background color of the entire webpage, using the bgcolor attribute. For example: &lt;body bgcolor="Blue"&gt; This should be done using CSS. In an internal or external sheet, you want a rule similar to the following: body {background-color: #ff00ff;} If you insist on doing it inline (for whatever reason) you want to attach the STYLE attribute to the BODY tag directly, and use the same rule. &lt;body style="background-color:#f0f;"&gt;

Related questions

Which property is used to change the font of an element in css?

Using CSS, you can change the background color using the background-color property.To set the body background in an HTML document, you'd use code that looked like this:body { background-color: rgb ( 255, 255, 255 ); }which would set the color to white.You can use any CSS color definition, a named color, a hexadecimal value, rgb, or rgba.


What is the attribute that changes font type?

The font tag has an attribute called "Face" using which you can set the font type. Ex: &lt;Font face = "Verdana"&gt; will display all following text in the Verdana font. You can also set font size and color using this tag. Ex: &lt;Font face = "Verdana" color = "Red" size = "10"&gt; will display text in Verdana font, red color and 10 pixels high in size.


How do you change font color on your email letter?

set the color:#000000; property in css to change the color of the font.


HTML for adding a background color?

It's not HTML. Background color is a CSS style. You need to put in either a stylesheet, or attach the style attribute to the tag whose background color you're trying to set. For instance: &lt;p style="background-color:blue;"&gt;This paragraph would have a blue background.&lt;/p&gt; Colors in CSS can be set using names (there's 170 or so of them) Via a hexadecimal RGB value: &lt;p style="background-color:#b3b3b3;"&gt;This a meduim gray. The pairs of hex digits correspond to RGB.&lt;/p&gt; Using RGB directly: &lt;p style="background-color: rgb(179,179,179);"&gt;This is the same color as #b3b3b3&lt;/p&gt; And using RGBA (which gives you an alpha channel, letting you set transparency) &lt;p style="background-color: rgba( 179, 179, 179, .5 );"&gt;This paragraphs background color would be 50% transparent.&lt;/p&gt;


How do you type HTML color font?

For the entire page, in the body tag you can use the text attribute. So if you wanted the colour to be gold, you would have:For individual elements of the page, you can use the font tag like this:That will continue having the text as gold until the font tag is closed. You can also change colours within tags using the style attribute.This text is red in colour.


Document format determines the color scheme font set and layout of a presentation.?

does each document format determines the color scheme, font set, and layout of a presentation in powerpoint


What tag can set the background color for your page?

The BODY tag is the one you should reference if you want to set the background color of the entire webpage, using the bgcolor attribute. For example: &lt;body bgcolor="Blue"&gt; This should be done using CSS. In an internal or external sheet, you want a rule similar to the following: body {background-color: #ff00ff;} If you insist on doing it inline (for whatever reason) you want to attach the STYLE attribute to the BODY tag directly, and use the same rule. &lt;body style="background-color:#f0f;"&gt;


How do you colour in rooms in game maker 8?

Set the background color in background settings. You can also set a picture to be the background.


What is bgcolor?

bg color is the abbreviation of background color there is a command used in HTML which set the background color which u want


What is the correct jQuery code to set the background color of all p elements to red?

$(this).css("background-color");


How to you change the background color of an image in photoshop cs?

The easiest and quickest way is by using the Background Color Picker on the floating toolbar. At the very bottom of the toolbar, there are 2 color squares overlapping each other - the top is the foreground, the bottom is the background. Click on the background and use the eyedropper tool to pick the color you want, or enter the value in the boxes. You can also set the default background color from the Preferences panel (Edit - Preferences).


What CSS would apply a blue color to a web page background?

You have two options. 1. Set the body tag to the specified blue color: &lt;body style='background-color: #0000FF'&gt; (Find the colors and their corresponding codes using a search engine. #0000FF is a bright blue) 2. Create an image 1 pixel by 1 pixel of the blue color you want to use. Set the body tag to display that image: &lt;body style='background-image: url("myBlueImage.gif")'&gt; I have used the inline styles. You could do this using a linked sheet, or the &lt;STYLE&gt; tag in the header or your HTML. 1. BODY { background-color: #0000FF; background-image: url("myBlueImage.gif"); }