| 
1 | 1 | <!DOCTYPE html>  | 
2 | 2 | <html lang="en-us">  | 
3 | 3 |   <head>  | 
4 |  | -    <meta charset="utf-8">  | 
5 |  | -    <meta name="viewport" content="width=device-width">  | 
 | 4 | +    <meta charset="utf-8" />  | 
 | 5 | +    <meta name="viewport" content="width=device-width" />  | 
6 | 6 |     <title>Other semantics examples</title>  | 
7 | 7 |   </head>  | 
8 | 8 |   <body>  | 
9 |  | -    <p>We use <abbr>HTML</abbr>, Hypertext Markup Language, to structure our web documents.</p>  | 
 | 9 | +    <p>  | 
 | 10 | +      We use <abbr>HTML</abbr>, Hypertext Markup Language, to structure our web  | 
 | 11 | +      documents.  | 
 | 12 | +    </p>  | 
10 | 13 | 
 
  | 
11 |  | -    <p>I think <abbr title="Reverend">Rev.</abbr> Green did it in the kitchen with the chainsaw.</p>  | 
 | 14 | +    <p>  | 
 | 15 | +      I think <abbr title="Reverend">Rev.</abbr> Green did it in the kitchen  | 
 | 16 | +      with the chainsaw.  | 
 | 17 | +    </p>  | 
12 | 18 | 
 
  | 
13 | 19 |     <address>  | 
14 | 20 |       <p>Chris Mills, Manchester, The Grim North, UK</p>  | 
15 | 21 |     </address>  | 
16 | 22 | 
 
  | 
17 | 23 |     <p>My birthday is on the 25<sup>th</sup> of May 2001.</p>  | 
18 | 24 | 
 
  | 
19 |  | -    <p>Caffeine's chemical formula is C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub>.</p>  | 
 | 25 | +    <p>  | 
 | 26 | +      Caffeine's chemical formula is  | 
 | 27 | +      C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub>.  | 
 | 28 | +    </p>  | 
20 | 29 | 
 
  | 
21 | 30 |     <p>If x<sup>2</sup> is 9, x must equal 3.</p>  | 
22 | 31 | 
 
  | 
23 |  | -    <pre><code>var para = document.querySelector('p');  | 
 | 32 | +    <pre><code>const para = document.querySelector('p');  | 
24 | 33 | 
 
  | 
25 | 34 | para.onclick = function() {  | 
26 | 35 |   alert('Owww, stop poking me!');  | 
27 | 36 | }</code></pre>  | 
28 | 37 | 
 
  | 
29 |  | -    <p>You shouldn't use presentational elements like <code><font></code> and <code><center></code>.</p>  | 
 | 38 | +    <p>  | 
 | 39 | +      You shouldn't use presentational elements like  | 
 | 40 | +      <code><font></code> and <code><center></code>.  | 
 | 41 | +    </p>  | 
30 | 42 | 
 
  | 
31 |  | -    <p>In the above JavaScript example, <var>para</var> represents a paragraph element.</p>  | 
 | 43 | +    <p>  | 
 | 44 | +      In the above JavaScript example, <var>para</var> represents a paragraph  | 
 | 45 | +      element.  | 
 | 46 | +    </p>  | 
32 | 47 | 
 
  | 
33 |  | -    <p>Select all the text with <kbd>Ctrl</kbd>/<kbd>Cmd</kbd> + <kbd>A</kbd>.</p>  | 
 | 48 | +    <p>  | 
 | 49 | +      Select all the text with <kbd>Ctrl</kbd>/<kbd>Cmd</kbd> + <kbd>A</kbd>.  | 
 | 50 | +    </p>  | 
34 | 51 | 
 
  | 
35 | 52 |     <pre>$ <kbd>ping mozilla.org</kbd>  | 
36 | 53 | <samp>PING mozilla.org (63.245.215.20): 56 data bytes  | 
37 | 54 | 64 bytes from 63.245.215.20: icmp_seq=0 ttl=40 time=158.233 ms</samp></pre>  | 
38 |  | - | 
39 | 55 |   </body>  | 
40 | 56 | </html>  | 
0 commit comments