Skip to content

Commit a675bbe

Browse files
committed
add <main> to example page
1 parent ce13853 commit a675bbe

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

examples/index.html

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,29 @@
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>Simple form</h1>
14+
<p>Input 422 for an error response.</p>
15+
<form>
16+
<label for="simple-field">Input</label>
17+
<auto-check csrf="foo" src="/demo" required>
18+
<input id="simple-field" autofocus name="foo" required />
19+
<code class="state"></code>
20+
</auto-check>
21+
<button>submit</button>
22+
</form>
2223

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

3436
<script>
3537
let focusedInput

0 commit comments

Comments
 (0)