css tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Tutorial</title>
<style>
p{
color:blue;
background-color: seagreen !important;
}
</style>
<!-- this is how internal css is to be added -->
<link rel="stylesheet" href="tut13.css">
</head>
<body>
<h3>This is CSS tutorial.</h3>
<!-- <p style="color:red; background-color:black;">This tutorial will teach you everything you need to know about HTML/CSS</p> -->
<p>This tutorial will teach you everything you need to know about HTML/CSS</p>
<!-- this is how inline css is to be added -->
<!-- inline css is given more importance as compared to internal css -->
<!-- yha internal css aur external css koi zda precedence nii h...jo phle likha hoga uska km pref h as compared to other. aur jisme baad me changes hue h uska precedence zda h -->
<!-- aur agr hm chahte h ki kch ho ya na ho pr ye zrur hona chahie to uske aage !important likh dege -->
</body>
</html>
p{
color:greenyellow;
}
Comments
Post a Comment