Thursday, 27 June 2013

COLOUR PROPERTY

(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>



  output will be as given below:

This text will be appear as it will be written by some type writer.

This heading is in blue colour

This heading used the olive colour hexadecimal no colour


4 comments:

  1. http://oldbookfair.blogspot.com/

    ReplyDelete
  2. sir its my new website saminashafqat
    http://saminashafqat.blogspot.com/

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. http://callmanagment.blogspot.com/

    ReplyDelete