-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2c7e20
commit 3abd2cc
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |