CSS Text Background

CSS Text Tips

Creating Text with CSS Background
What can you do with text is to beautify the text with the background color of the text. You do this by providing the background-color syntax.
<body> <h1 style="color:#FFFFFF"> <span style="background-color: #006699"> HTML Tips</ span> </ h1> </ body>

Examples of programs:

<html>
<head>
<title>Color Background Teks</title>
</head>
<body>
<h1 style="color:#FFFFFF">
<span style="background-color:#FF0000">
HTML Tips
</span></h1>

<h2 style="color:#000000">
<span style="background-color:#2BE20C">
CSS Tutorial
</span></h2>

</body>
</html>

Writing style used is <span> tags.
The result is below:

Background Color Text: to set the background color property on the text then the text is obtained with a certain background color.

0 comments:

Post a Comment