(6) COLOR PROPERTY OF STYLE ATTRIBUTE
W3c has listed 16 valid colours name which are validated and process with the html page. The colour property of the style attribute will specifies one of these colours to be applied to the textual content.
Some colour and their hexadecimal values are mentioned in the table below:
| Color | hexadecimal value |
|---|---|
| Aqua | #00ffff |
| Fuchsia | #ff00ff |
| Gray | #808080 |
| Maroon | #800000 |
| Navy | #000080 |
| Olive | #808000 |
| Purple | #800080 |
| Silver | #c0c0c0 |
| Teal | #008080s |
If you know the hexadecimal value of any colour then you can use it in your document every where you want in your document.
Simple code is shown as below using this property:
<TT style="color:red"> This text will be appear as it will be written by some type writer. </TT>
<h1 style="color:blue"> This heading is in blue colour</h1>
<h2 style="color:#808000"> This heading used the olive colour hexadecimal no colour</h2>
<h1 style="color:blue"> This heading is in blue colour</h1>
<h2 style="color:#808000"> This heading used the olive colour hexadecimal no colour</h2>
This text will be appear as it will be written by some type writer.
http://oldbookfair.blogspot.com/
ReplyDeletesir its my new website saminashafqat
ReplyDeletehttp://saminashafqat.blogspot.com/
This comment has been removed by the author.
ReplyDeletehttp://callmanagment.blogspot.com/
ReplyDelete