<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>selector</title>
</head>
<style>
h1{
border: 2px solid black;
background-color: black;
color: white;
font-weight: bold;
}
div p{
/* color: red; */
}
p{
/* color:yellow */
}
div li p{
/* color: blue; */
}
div>p{
/* color: green; */
}
li<p{
color: orange;
}
</style>
<body>
<h1>This is head line</h1>
<div class="container">
<ul>
<li>
<p>This is inside li para</p>
<p>This is inside li para</p>
</li>
</ul>
<div class="para"><p>This is frist para</p></div>
<div class="para"><p>This is second para</p></div>
<div class="para"><p>This is third para</p></div>
</div>
<p>This is outer para</p>
</body>
</html>
No comments:
Post a Comment