forked from Make-School-Labs/CSS-Challenges
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathchallenge-8.html
94 lines (64 loc) · 1.78 KB
/
challenge-8.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
93
94
<!doctype html>
<html lang="en">
<head>
<title>Challenge 8</title>
<style>
/* Add some styles */
/* Style the fonts for the page */
body {
/* Se the font to 'Helvetica Neue' */
}
/* Style the preformatted blocks */
pre {
/* Give these some padding 1em */
/* Background color #eee */
}
/* Style code examples */
code {
/* Set font family to 'Courier New' */
/* color rgb(3, 107, 199) */
}
/* Style strong elements in code */
/* We'll use this to highlight important things */
code strong {
/* Font weight normal */
/* add an underline text-decoration: underline */
/* make the underline wavy text-decoration-style: wavy */
/* Give these a color so they stand out rgb(105, 40, 179) */
}
/* This code has been edited. We should show the edits */
/* Select del tags that are descedents of code tags */
/* Style deleted text */
code del {
/* color red rgb(199, 72, 3) */
/* strike through text-decoration-line: line-through */
/* Lets make the line wavy */
}
/* style inserted text */
/* Select ins tags that descendents of code tags */
code ins {
/* color green rgb(56, 140, 48) */
}
</style>
</head>
<body>
<article>
<header>
<h2>p tag</h2>
</header>
<p>Defines paragraph.</p>
<pre><code><p>This is a sample of the p tag in action!</p></code></pre>
</article>
<article>
<header>
<h2>JavaScript</h2>
</header>
<p>Scripts the browser.</p>
<pre><code><del>var x = 10;</del> // bad
<ins>const x = 10;</ins> // good!
function test() {
<strong>console.log(x);</strong>
}</code></pre>
</article>
</body>
</html>