-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassign1.html
92 lines (90 loc) · 1.46 KB
/
assign1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
</html>
<!DOCTYPE html>
<html>
<head>
<title>Combinator Selector Practice</title>
<style>
/* Add your CSS rules here */
/*task 1*/
nav ul {
background-color:rgb(140, 255, 0) ;
}/*task 2*/
section h2 + p {
color: rgb(226, 43, 156);
}
/*task 3*/
.paragraphs :first-child {
border:5px salmon;
}
/* task 4*/
.links a{
font-weight: bold;
}
/*task 5*/
.paragraphs p:nth-child(3){
font-size: 30px;
}
/*task 6*/
nav ul li {
margin-bottom: 5px;
}
/*task 7*/
.links a:nth-child(1){
color: crimson;
}
/*task 8*/
.links a:nth-child(2){
text-decoration: underline;
}
/*task 9*/
section{
padding: 25pt;
}
/*task 10*/
footer{
border: 2px solid green;
}
</style>
</head>
<body>
<header>
<h1>Welcome to the Combinator Selector Practice</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<main>
<section>
<h2>About Us</h2>
<p>We are a web development company...</p>
</section>
<section>
<h2>Our Services</h2>
<ul>
<li>Web Design</li>
<li>Front-end Development</li>
<li>Back-end Development</li>
</ul>
</section>
</main>
<div id="additional-info">
<div class="paragraphs">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p>Paragraph 3</p>
</div>
<div class="links">
<a href="#">Link 1</a>
<a href="#">Link 2</a>
</div>
</div>
<footer>
<p>© 2023 Combinator Selector Practice</p>
</footer>
</body>
</html>