|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | | - <meta charset="utf-8"> |
5 | | - <title>CSS Specificity Calculations</title> |
6 | | - <link rel="stylesheet" href="styles/reset.css"> |
7 | | - <link rel="stylesheet" href="styles/fonts.css"> |
8 | | - <link rel="stylesheet" href="styles/main.css"> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>CSS Specificity Calculations</title> |
| 6 | + <link rel="stylesheet" href="../../../styles/reset.css"> |
| 7 | + <link rel="stylesheet" href="styles/fonts.css"> |
| 8 | + <link rel="stylesheet" href="styles/main.css"> |
| 9 | + <link rel="stylesheet" href="../../../styles/base.css"> |
9 | 10 | </head> |
10 | 11 | <body> |
11 | | - <h1>CSS Specificity Calculations</h1> |
12 | | - <table> |
| 12 | + <header> |
| 13 | + <h1>CSS Specificity Calculations</h1> |
| 14 | + </header> |
| 15 | + <main> |
| 16 | + <table> |
13 | 17 | <thead> |
14 | | - <tr> |
15 | | - <th>Selector Type</th> |
16 | | - <th>Specificity</th> |
17 | | - </tr> |
| 18 | + <tr> |
| 19 | + <th>Selector Type</th> |
| 20 | + <th>Specificity</th> |
| 21 | + </tr> |
18 | 22 | </thead> |
19 | 23 | <tbody> |
20 | | - <tr> |
21 | | - <td>Universal selector (the <code>*</code> operator)<br> |
22 | | - Combinators (the <code>+</code> operator)</td> |
23 | | - <td><code>0, 0, 0, 0</code></td> |
24 | | - </tr> |
25 | | - <tr> |
26 | | - <td>Element identifier (such as <code>p</code>, <code>ul</code>, etc.)<br> |
| 24 | + <tr> |
| 25 | + <td>Universal selector (the <code>*</code> operator)<br> |
| 26 | + Combinators (the <code>+</code> operator)</td> |
| 27 | + <td><code>0, 0, 0, 0</code></td> |
| 28 | + </tr> |
| 29 | + <tr> |
| 30 | + <td>Element identifier (such as <code>p</code>, <code>ul</code>, etc.)<br> |
27 | 31 | Pseudo-element identifier (such as the poorly supported <code>:first-line</code> and <code>:first-letter</code>)</td> |
28 | | - <td><code>0, 0, 0, 1</code></td> |
29 | | - </tr> |
30 | | - <tr> |
31 | | - <td>Class identifier (elements that begin with the dot operator (<code>.</code>))<br> |
| 32 | + <td><code>0, 0, 0, 1</code></td> |
| 33 | + </tr> |
| 34 | + <tr> |
| 35 | + <td>Class identifier (elements that begin with the dot operator (<code>.</code>))<br> |
32 | 36 | Pseudo-class identifier (such as <code>a:link</code>, etc)<br> |
33 | 37 | Attribute identifier (selection based on the attribute assigned to an HTML tag, such as <code>img[width]</code>.</td> |
34 | | - <td><code>0, 0, 1, 0</code></td> |
35 | | - </tr> |
36 | | - <tr> |
37 | | - <td>ID identifier (elements that begin with the pound, or hash, mark: <code>#</code>)</td> |
38 | | - <td><code>0, 1, 0, 0</code></td> |
39 | | - </tr> |
40 | | - <tr> |
41 | | - <td>Inline style (style information included directly inside an HTML tag)</td> |
42 | | - <td><code>1, 0, 0, 0</code></td> |
43 | | - </tr> |
| 38 | + <td><code>0, 0, 1, 0</code></td> |
| 39 | + </tr> |
| 40 | + <tr> |
| 41 | + <td>ID identifier (elements that begin with the pound, or hash, mark: <code>#</code>)</td> |
| 42 | + <td><code>0, 1, 0, 0</code></td> |
| 43 | + </tr> |
| 44 | + <tr> |
| 45 | + <td>Inline style (style information included directly inside an HTML tag)</td> |
| 46 | + <td><code>1, 0, 0, 0</code></td> |
| 47 | + </tr> |
44 | 48 | </tbody> |
45 | | - </table> |
| 49 | + </table> |
| 50 | + </main> |
46 | 51 | </body> |
47 | 52 | </html> |
0 commit comments