Types Css

 

C task  CREATE A CLONE OF AN APPLICATION

 

                        INTERNAL CSS

 

 

·      Internal css is saved with ext.   .html

·      Structure of internal css-

<html>

<head>

    <style type=”text/css”>

      .

      .

    </style>

   </head>

   </html>

 

Method of internal css

1.    Tag name method

2.    Class method

 

1.    Tag name method:-   THE tag name method is not applicable in similar tags.

Syntax-

tagname   {attribute }

ex.

<html>

<head>

<style type="text/css">

font

{

color:red;

}

 

font

{

color:blue;

}

</style>

</head>

<body>

<font>welcome</font>

<br>

<font>Hello brother</font>

</body>

</html>


 

2.   Class   Method –

Syntax

.classname

{attribute

}  

 

How to access class:

Access all type of class using class attributes

Ex. <html>

<head>

<style types="text/css">

 

.my1

{ color:red

}

.my2

{ color:blue

}

</style>

</head>

<body>

<font class="my1"> thanks</font><br>

 

<font class="my2"> welcome</font>

</body>

</html>

 

 

 

 

 

 

3.   External css

·      It is created outside html pages

·      It is saved with ext -.css

·      Tag symbol cannot used external css


Comments

Popular posts from this blog

Store procedure Data Base handling (procedure_insert).

ViewState for state management

Database joining