CSS(Cascading Style Sheets)
CSS(Cascading Style Sheets)
1.Inline CSS
2.Internal CSS
3.External CSS
1.Inline CSS:-
<p style="color:red;"> hello </p>
Examples:-
<!doctype html>
<html>
<head> <title> Shahrukh Khan </title> </head>
<body>
<h3> Registration Form </h3>
<p> hello my name is Shahrukh Khan </p>
<p style="color:red;"> hello my name is Shahrukh Khan </p>
<p> hello my name is Shahrukh Khan </p>
<p> hello my name is Shahrukh Khan </p>
<p> hello my name is Shahrukh Khan </p>
</body>
</html>
2.Internal CSS:-
<!doctype html>
<html>
<head> <title> Shahrukh Khan</title>
<style>
p{color: red;}
h1{color: green}
<style>
</head>
<body>
<h3> Registration Form </h3>
<p> hello my name is Shahrukh Khan </p>
<p> hello my name is Shahrukh Khan </p>
<p> hello my name is Shahrukh Khan </p>
<p> hello my name is Shahrukh Khan </p>
<p> hello my name is Shahrukh Khan </p>
<h1>Swiss Srk </h1>
<h2>Shahrukh </h2>
<h3> Khan </h3>
</body>
</html>
3.External CSS:-
<head>
<link rel="stylesheet" href="file.css">
</head>
-SHAHRUKH KHAN(CSE)
Comments
Post a Comment