Tuesday 10 September 2013

Applying Css

Three Ways To Applying Css To Html 


  1. In-Line Css

  2. Internal

  3. External 

      In-Line Css

    (1)This Way To Apply In-Line Css:

    <h1 style="font:'Times New Roman', Times, serif" style="size:inherit" style="color:#003333"> In-Line Css</h1> 

    Internal Css:

    (2)This Way To Apply Internal Css:

    This Is Used For The Hole Page Inside Head Element But Style  Tags Applying All Of The Style For The Page :

    <style>
    {
       font:Arial, Helvetica, sans-serif;
       font-size:16px;
       text-align:center;
       text-decoration:blink;
       }
     </style>

     

      External Css

    (3)This Way To Use External Css:

     

    This Is Seprate Css File :

    .page
    {
         background:#000000;
         height:auto;
         width:620;
    }

    Save This File Style.css Extenstion And This File Attach Html Document Like This 


    <link rel="stylesheet" type="text/javascript" href="Put Your File Name" />

     

     

2 comments:

  1. nice blog, cool.
    please highlight your syntax, it's really hard to read.

    good luck.

    ReplyDelete
    Replies
    1. Thanks Arash M.Deghani for visiting my blog i'll highlight syntax .thanks for your advice

      Delete

Thanks for your feedback