Home Css Text
Text
How to Set Text Background Color Using CSS

The entire document code will appear like this:

<html>
<head>
<style type="text/css">
span.yellow
{
background-color:yellow
}
</style>
</head>
<body>
<p>
<span class="yellow">This is a text</span>
</p>
</body>
</html>

Before applying Css:

Text Background Color Using Css

After applying Css:

Text Background Color Using Css

 


Featured Articles

Adobe Illustrator
  Adobe IllustratorLearn drawing technique, text effect, 3D graphic & more refer Illustrator Tutorial.
Adobe Dreamweaver
Adobe Dreamweaver If you want to learn to design website learn through our Dreamweaver Tutorial.
CSS (Cascading Style Sheets)
Css Save your time for website designing and speed up your work by using CSS.