Skip to content

Commit 2141ef1

Browse files
authored
Merge pull request #65 from github/add-main-to-example-page
add <main> to example page, reorder headers to avoid multiple h1s
2 parents ce13853 + acb775c commit 2141ef1

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

examples/index.html

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,30 @@
99
</style>
1010
</head>
1111
<body>
12-
<h1>Simple form</h1>
13-
<p>Input 422 for an error response.</p>
14-
<form>
15-
<label for="simple-field">Input</label>
16-
<auto-check csrf="foo" src="/demo" required>
17-
<input id="simple-field" autofocus name="foo" required />
18-
<code class="state"></code>
19-
</auto-check>
20-
<button>submit</button>
21-
</form>
12+
<main>
13+
<h1>auto-check-element</h1>
14+
<h2>Simple form</h2>
15+
<p>Input 422 for an error response.</p>
16+
<form>
17+
<label for="simple-field">Input</label>
18+
<auto-check csrf="foo" src="/demo" required>
19+
<input id="simple-field" autofocus name="foo" required />
20+
<code class="state"></code>
21+
</auto-check>
22+
<button>submit</button>
23+
</form>
2224

23-
<h1>Form that has custom validity messages</h1>
24-
<p>Input 422 for an error response.</p>
25-
<form id="custom">
26-
<label for="custom-field">Input</label>
27-
<auto-check csrf="foo" src="/demo" required>
28-
<input id="custom-field" autofocus class="json" name="foo" required />
29-
<code class="state"></code>
30-
</auto-check>
31-
<button>submit</button>
32-
</form>
25+
<h2>Form that has custom validity messages</h2>
26+
<p>Input 422 for an error response.</p>
27+
<form id="custom">
28+
<label for="custom-field">Input</label>
29+
<auto-check csrf="foo" src="/demo" required>
30+
<input id="custom-field" autofocus class="json" name="foo" required />
31+
<code class="state"></code>
32+
</auto-check>
33+
<button>submit</button>
34+
</form>
35+
</main>
3336

3437
<script>
3538
let focusedInput

0 commit comments

Comments
 (0)