-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0.01_cssClasses.html
65 lines (65 loc) · 2.77 KB
/
0.01_cssClasses.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
<!DOCTYPE html>
<html>
<head>
<title>CSS Classes</title>
<link rel="stylesheet" type="text/css" href="./0.01_cssClasses.css">
</head>
<body>
<h1>CSS Classes</h1>
<div class="customDiv">
<h1>First Div</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<div class="customDiv2">
<h1>Second Div</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<div class="customDiv">
<h1>Third Div</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<!-- Add a border to the second div using a class attribute-->
<div class="challengeDiv">
<h1>BRONZE</h1>
<p>Make the background of the div light grey.</p>
</div>
<div class="challengeDiv">
<h1>SILVER</h1>
<ul class="ul1">
<h3><li>get job</li>
<li>????????</li>
<li>PROFIT!!!!</li></h3>
</ul>
</div>
<div class="challengeDiv">
<h1>GOLD</h1>
<h4>Classes</h4>
<p class="p1">A CSS Class is an identifier of an element which can be used multiple times on a page.</p>
<p class="p1"><b>Memory device</b>: Classes in schools are periods. Remember to use a . whenever you make a reference to a class</p>
<ul class="ul2">
<li>Classes start with . in the selector <b>.anything-you-want-to-name-it</b></li>
<li>Again, the same class can be used more than once within the same file</li>
<li>The class keyword refers to the class name that you set in the html page in the specific tag</li>
<li>In the CSS file, you can identify a class on the whole, or you can identify particular parts to style (ex: p tage, h3, or li tags).</li>
</ul>
</div>
</body>
</html>