Skip to content

Commit 9831cba

Browse files
committed
Create attribute-links.html
1 parent a804d74 commit 9831cba

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Selectors: attribute selectors</title>
7+
<link rel="stylesheet" href="../styles.css">
8+
<style>
9+
ul {
10+
list-style: none;
11+
margin: 0;
12+
padding: 0;
13+
}
14+
15+
li {
16+
margin: 0 0 .5em 0;
17+
}
18+
19+
a {
20+
display: block;
21+
padding: .5em;
22+
}
23+
</style>
24+
25+
<style class="editable">
26+
a {
27+
border: 5px solid grey;
28+
}
29+
</style>
30+
</head>
31+
32+
<body>
33+
<section class="preview">
34+
35+
<ul>
36+
<li><a href="https://example.com">Link 1</a></li>
37+
<li><a href="http://example.com" title="Visit example.com">Link 2</a></li>
38+
<li><a href="/contact">Link 3</a></li>
39+
<li><a href="../contact/index.html">Link 4</a></li>
40+
</ul>
41+
42+
</section>
43+
44+
<textarea class="playable playable-css" style="height: 100px;">
45+
a {
46+
border: 5px solid grey;
47+
}
48+
</textarea>
49+
50+
<textarea class="playable playable-html" style="height: 160px;">
51+
<ul>
52+
<li><a href="https://example.com">Link 1</a></li>
53+
<li><a href="http://example.com" title="Visit example.com">Link 2</a></li>
54+
<li><a href="/contact">Link 3</a></li>
55+
<li><a href="../contact/index.html">Link 4</a></li>
56+
</ul>
57+
</textarea>
58+
59+
<div class="playable-buttons">
60+
<input id="reset" type="button" value="Reset">
61+
</div>
62+
</body>
63+
<script src="../playable.js"></script>
64+
65+
</html>

0 commit comments

Comments
 (0)