|
1 |
| -<!DOCTYPE html> |
2 |
| -<html lang="en"> |
3 |
| - <head> |
4 |
| - <meta charset="utf-8" /> |
5 |
| - <title>Alert Example</title> |
6 |
| - |
7 |
| - <!-- js and css for this example. --> |
8 |
| - <link href="css/alert.css" rel="stylesheet"> |
9 |
| - <script src="js/alert.js" type="text/javascript"></script> |
10 |
| - </head> |
11 |
| - <body> |
12 |
| - <main> |
13 |
| - <h1>Alert Example</h1> |
14 |
| - <p> |
15 |
| - The below example demonstrates the <a href="https://w3c.github.io/#alert">design pattern for alert</a>. |
16 |
| - Activating the <q>Trigger Alert</q> button causes a message to be inserted into the example alert element. |
17 |
| - </p> |
18 |
| - <section> |
19 |
| - <div class="example-header"> |
20 |
| - <h2 id="ex_label">Example</h2> |
21 |
| - </div> |
22 |
| - <div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div> |
23 |
| - <div id="ex1"> |
24 |
| - <button type="button" id="alert-trigger">Trigger Alert</button> |
25 |
| - |
26 |
| - <div id="example" role="alert"></div> |
27 |
| - |
28 |
| - <!-- The following script element contains the content that will be inserted into the alert element. --> |
29 |
| - <script type="text/template" id="alert-template"> |
30 |
| - <p>Hello</p> |
31 |
| - </script> |
32 |
| - </div> |
33 |
| - <div role="separator" id="ex_end_sep" aria-labelledby="ex_end_sep ex_label" aria-label="End of"></div> |
34 |
| - </section> |
35 |
| - </main> |
36 |
| - </body> |
37 |
| -</html> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>Alert Example</title> |
| 6 | + |
| 7 | + <!-- js and css for this example. --> |
| 8 | + <link href="css/alert.css" rel="stylesheet"> |
| 9 | + <script src="js/alert.js" type="text/javascript"></script> |
| 10 | + </head> |
| 11 | + <body> |
| 12 | + <main> |
| 13 | + <h1>Alert Example</h1> |
| 14 | + <p> |
| 15 | + The below example demonstrates the <a href="https://w3c.github.io/#alert">design pattern for alert</a>. |
| 16 | + Activating the <q>Trigger Alert</q> button causes a message to be inserted into the example alert element. |
| 17 | + </p> |
| 18 | + <section> |
| 19 | + <div class="example-header"> |
| 20 | + <h2 id="ex_label">Example</h2> |
| 21 | + </div> |
| 22 | + <div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div> |
| 23 | + <div id="ex1"> |
| 24 | + <button type="button" id="alert-trigger">Trigger Alert</button> |
| 25 | + |
| 26 | + <div id="example" role="alert"></div> |
| 27 | + |
| 28 | + <!-- The following script element contains the content that will be inserted into the alert element. --> |
| 29 | + <script type="text/template" id="alert-template"> |
| 30 | + <p>Hello</p> |
| 31 | + </script> |
| 32 | + </div> |
| 33 | + <div role="separator" id="ex_end_sep" aria-labelledby="ex_end_sep ex_label" aria-label="End of"></div> |
| 34 | + </section> |
| 35 | + </main> |
| 36 | + </body> |
| 37 | +</html> |
0 commit comments