|
CodeAve.com - CSS - Text Display | |||
|
|
|||
| Text Background Color | ||||
|
|
||||
<html> <head> <title>CodeAve.com/CSS - Text Background Color</title> <style type="text/css"> <!-- p {background-color: #FFFF66} /* Setting the paragraph tag with a background-color attribute will change the background color of all the text between paragraph tags to another color (in this case yellow) */ --> </style> </head> <body> <p> The background of the entire text field has been set to yellow </p> <br> <!-- This ia an inline example of coloring the background of only selected text --> The background of only <span style="background-color: #FFFF66">selected text</span> has been set to yellow </body> </html>
|
||||
|
|
||||