-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (59 loc) · 1.49 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>debugCSS</title>
<meta name="description" content="A style-sheet to help visually identify potential errors in HTML.">
<meta name="author" content="Dima Vishnevetsky">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="dist/css/debugCSS.css">
</head>
<body>
<h2>Links</h2>
<ul class="issues">
<li>
<h3><code>href</code> Attribute</h3>
<div class="explanation">
<h4>Why?</h4>
<p>An anchor tag should always have an <code>href</code> value defined.</p>
</div>
<div class="example">
<p><a>Missing attribute</a></p>
<p><a href="">Empty attribute</a></p>
<p><a href="#">Hash (#) only</a></p>
<p><a href="javascript:void(0)">Obtrusive JavaScript</a></p>
</div>
</li>
<li>
<h3><code>target</code> Attribute</h3>
<div class="explanation">
<h4>Why?</h4>
<p>The <code>target</code> attribute should never be used.</p>
</div>
<div class="example">
<p><a href="#fpo" target="_blank">Example</a></p>
</div>
</li>
<li>
<h3>Empty Elements</h3>
<div class="explanation">
<h4>Why?</h4>
<p>Elements that contain no text usually are in place to achieve a certain layout.</p>
<p>The layout should be controlled by the CSS.</p>
</div>
<div class="example">
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
<a></a>
<p></p>
<ol></ol>
<ul></ul>
</div>
</li>
</ul>
</body>
</html>