METHOD OF INTERNAL CSS / tag name method / class method
METHOD OF INTERNAL CSS:- imp
there are two method is used to internal CSS
1. tag name method
2. class method
1. TAG NAME METHOD:- imp
tag name method only used name of the Tag.it can not used tag symbol. < >
NOTE:- in tag name menthod can not used similar tag name.
syntax :-
tagname
{
attribute;
}
ex.:=
font
{
color:red;
}
ex.:-
<html>
<head>
<style type="text/css">
font
{
color:red;
}
</style>
</head>
<body>
<font> welcome </font>
<br>
<font> NAGPUR </font>
<br>
<font> MUMBAI </font>
</body>
</html>
2. CLASS METHOD:- imp
1. in class method user can create multiple CSS.
2. all class is to be created using (.) operators
SYNTEX:-
.classname
{
attributes:
}
ex.:-
<html>
<head>
<style type="text/css">
font
{
color:red;
}
</style>
</head>
<body>
<font> welcome </font>
<br>
<font> NAGPUR </font>
<br>
<font> MUMBAI </font>
</body>
</html>
Comments
Post a Comment