Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
akshitbansal2005 authored Feb 18, 2024
1 parent e2c7e20 commit 3abd2cc
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions CSS Question.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!-- Q. write html and css code to style a paragraph inside a div which contains 5 other paragraph. the first paragraph must have background color yellow and text color red. the other paragraphmust have background color blue and text color white. the html is written below for you reference.Dont change the html -->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
h1{
font: 200;
font-family: Georgia, 'Times New Roman', Times, serif;
text-decoration: underline;
letter-spacing: 1.2px;
color: green;
}

p{
color: red;
}
div{
color: blue;
}
.yellow{
background-color: yellow;
}
</style>
</head>
<body>
<div>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos aut, distinctio eius ipsa autem quidem veniam quia, mollitia natus adipisci beatae officiis veritatis. Fugiat laboriosam quo consequatur sit fugit blanditiis!
<p>I am another para</p>
<p>I am also another para</p>
</div>
<div>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos aut, distinctio eius ipsa autem quidem veniam quia, mollitia natus adipisci beatae officiis veritatis. Fugiat laboriosam quo consequatur sit fugit blanditiis!
<p>I am another para</p>
<p>I am also another para</p>
</div>

<div class="yellow">
I am another para
<p>Hello World</p>
</div>
<h1>this is my world</h1>



</body>
</html>

0 comments on commit 3abd2cc

Please sign in to comment.