color code:
<div style="width:300px;background-color:yellow;color:blue;border:1px solid black;">
<p>The surrounding 'div' element has got the following properties applied against it: background-color:yellow; color:blue; border:1px solid black;</p>
<p style="color:white;background-color:orange;">This text has got different styles applied. But you can also over-ride these styles by using a 'span' element, like <span style="color:black;">this</span> and <span style="background-color:red;color:lime;font-weight:bold;">this</span>.</p>
</div>
result:
This text has got different styles applied. But you can also over-ride these styles by using a 'span' element, like this and this.
Walang komento:
Mag-post ng isang Komento