forked from weareunderdesign/rene.css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreasonable.html
2421 lines (2265 loc) Β· 93 KB
/
reasonable.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html lang="en" data-theme="light">
<head>
<meta charset="utf-8">
<title>Reasonable.html β A single HTML document that contains a reasonably complete set of example HTML elements.
</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./src/index.css">
</head>
<body>
<main>
<h1>Reasonable.html</h1>
<p>Reasonable.html is a single HTML document that contains a reasonably complete set of example HTML elements.
It includes most commonly used HTML elements and attempts to use them in common and expected ways.</p>
<article>
<h2>Why does this exist?</h2>
<p>Reasonable.html was purpose-built to test the classless CSS rules defined in <a
href="https://github.com/matthewhowell/reasonable.css">reasonable.css</a>.</p>
<h3>Can I use this?</h3>
<p>Reasonable.html is free software. The full source code is available and released here under the <a
href="https://choosealicense.com/licenses/mit/">MIT License</a>.</p>
<h3>How might I use this?</h3>
<p>Reasonable.html has two obvious uses:</p>
<ol>
<li>Testing browser default rendering of HTML elements</li>
<li>Testing classless CSS rules for styling those HTML elements</li>
</ol>
<p>Additionally, it might be useful when:</p>
<ul>
<li>Poking around the source to learn HTML</li>
<li>Testing more complex CSS frameworks or design systems (likely, with the addition of classes)</li>
<li>Testing an HTML renderer or parser</li>
<li>Testing screen readers or other accessibility tools</li>
</ul>
<h3>Who made this?</h3>
<p>Reasonable.html was created by <a href="https://www.matthewhowell.net">Matthew Howell</a>, a human,
trying his best.</p>
<p>Like everything in life, it couldn't exist without the help and generosity of others, find a <a
href="#acknowledgements">full list of acknowledgements here.</a></p>
</article>
</main>
<hr />
<!-- elements -->
<section>
<a name="example-html-elements"></a>
<h2>Example HTML Elements</h2>
<p>Reasonable.html includes examples of most HTML elments listed in <a title="Mozilla HTML Element Reference"
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element">Mozilla's HTML Element Reference</a>,
which mirrors the <a title="W3C HTML 5.2 specification" href="https://www.w3.org/TR/html52/">W3C HTML 5.2
specification</a>. Each is presented below, ordered alphabetically.</p>
<p>There are also a handful of ommitted HTML elements, which are <a href="#omitted-elements">detailed here</a>.
</p>
<hr />
<form id="go-to-element" onsubmit="elementNavigationHandler(event);">
<label for="element-navigation">Jump to Element</label>
<br />
<select name="element-navigation" id="element-navigation">
<option value="example-html-elements"></option>
<option value="a">a</option>
<option value="abbr">abbr</option>
<option value="address">address</option>
<option value="area">area</option>
<option value="article">article</option>
<option value="aside">aside</option>
<option value="audio">audio</option>
<option value="b">b</option>
<option value="bdi">bdi</option>
<option value="bdo">bdo</option>
<option value="blockquote">blockquote</option>
<option value="button">button</option>
<option value="caption">caption</option>
<option value="cite">cite</option>
<option value="code">code</option>
<option value="col">col</option>
<option value="colgroup">colgroup</option>
<option value="data">data</option>
<option value="datalist">datalist</option>
<option value="dd">dd</option>
<option value="del">del</option>
<option value="details">details</option>
<option value="dfn">dfn</option>
<option value="div">div</option>
<option value="dl">dl</option>
<option value="dt">dt</option>
<option value="em">em</option>
<option value="fieldset">fieldset</option>
<option value="figcaption">figcaption</option>
<option value="figure">figure</option>
<option value="footer">footer</option>
<option value="form">form</option>
<option value="h1">h1</option>
<option value="h2">h2</option>
<option value="h3">h3</option>
<option value="h4">h4</option>
<option value="h5">h5</option>
<option value="h6">h6</option>
<option value="header">header</option>
<option value="hgroup">hgroup</option>
<option value="hr">hr</option>
<option value="i">i</option>
<option value="img">img</option>
<option value="ins">ins</option>
<option value="kbd">kbd</option>
<option value="label">label</option>
<option value="legend">legend</option>
<option value="li">li</option>
<option value="main">main</option>
<option value="map">map</option>
<option value="mark">mark</option>
<option value="meter">meter</option>
<option value="nav">nav</option>
<option value="ol">ol</option>
<option value="optgroup">optgroup</option>
<option value="option">option</option>
<option value="output">output</option>
<option value="p">p</option>
<option value="picture">picture</option>
<option value="pre">pre</option>
<option value="progress">progress</option>
<option value="q">q</option>
<option value="rp">rp</option>
<option value="rt">rt</option>
<option value="ruby">ruby</option>
<option value="s">s</option>
<option value="samp">samp</option>
<option value="section">section</option>
<option value="select">select</option>
<option value="small">small</option>
<option value="source">source</option>
<option value="span">span</option>
<option value="strong">strong</option>
<option value="sub">sub</option>
<option value="summary">summary</option>
<option value="sup">sup</option>
<option value="table">table</option>
<option value="tbody">tbody</option>
<option value="td">td</option>
<option value="textarea">textarea</option>
<option value="tfoot">tfoot</option>
<option value="th">th</option>
<option value="thead">thead</option>
<option value="time">time</option>
<option value="tr">tr</option>
<option value="track">track</option>
<option value="u">u</option>
<option value="ul">ul</option>
<option value="video">video</option>
<option value="var">var</option>
<option value="wbr">wbr</option>
</select>
<button id="go-to-element-submit" type="submit">Go β</button>
</form>
<hr />
<!-- a -->
<a name="a"></a>
<h4><a href="#a"><code><a></code></a></h4>
<p>
The HTML <code><a></code> element (or anchor element), with its href attribute, creates a hyperlink to
web pages, files, email addresses, locations in the same page, or anything else a URL can address.
<br /><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text which contains <a href="">an anchor element</a>.</p>
</section>
</details>
<hr />
<!-- abbr -->
<a name="abbr"></a>
<h4><a href="#abbr"><code><abbr></code></a></h4>
<p>
The HTML Abbreviation element <code><abbr></code> represents an abbreviation or acronym; the optional
title attribute can provide an expansion or description for the abbreviation.
</br><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text which contains an abbreviation element for the acronym <abbr
title="light amplification by stimulated emission of radiation">laser</abbr>.</p>
</section>
</details>
<hr />
<!-- address -->
<a name="address"></a>
<h4><a href="#address"><code><address></code></a></h4>
<p>
The HTML <code><address></code> element indicates that the enclosed HTML provides contact information
for a person or people, or for an organization.
<br /><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<address>
123 Address St<br />
Example Town, CA 12345<br />
USA
</address>
</section>
</details>
<hr />
<!-- article -->
<a name="article"></a>
<h4><a href="#article"><code><article></code></a></h4>
<p>The HTML <code><article></code> element represents a self-contained composition in a document, page,
application, or site, which is intended to be independently distributable or reusable (e.g., in
syndication).</p>
<details open>
<summary>Example</summary>
<section>
<article>
<header>
<h5>A Reasonable Article</h5>
</header>
<section>
<p>A Reasonable Article is a tiny example <code><article></code> element that contains a
reasonable set of other example elements. It was purpose-built for appearing within the
example <code><article></code> element (hello!) in <a
href="https://github.com/matthewhowell/reasonable.html">reasonable.html</a>, which was
purpose-built to test a set of classless CSS rules (<a
href="https://github.com/matthewhowell/reasonable.css">reasonable.css</a>).</p>
</section>
</article>
</section>
</details>
<aside><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article">More at MDN β</a></aside>
<hr />
<!-- aside -->
<a name="aside"></a>
<h4><a href="#aside"><code><aside></code></a></h4>
<p>
The HTML <code><aside></code> element represents a portion of a document whose content is only
indirectly related to the document's main content.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>Here is a paragraph that is primarily about dogs. There are more than 400 breeds of dogs.</p>
<aside>Here is an aside about cats, which, one might say, is indirectly related to a paragraph about
dogs. There are about 60 breeds of cats.</aside>
<p>Returning to the topic of dogs: to be considered a pack, three or more adult dogs are required.</p>
</section>
</details>
<hr />
<!-- audio -->
<a name="audio"></a>
<h4><a href="#audio"><code><audio></code></a></h4>
<p>
The HTML <code><audio></code> element is used to embed sound content in documents. It may contain one
or more audio sources, represented using the src attribute or the
<source> element: the browser will choose the most suitable one. It can also be the destination for streamed
media, using a MediaStream.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<figure>
<audio controls preload="none"
src="./media/kimiko-ishizaka-open-goldberg-variations-20-variatio-19-a-1-clav.mp3">
Your browser does not support the <code><audio></code> element.
</audio>
<figcaption>Kimiko Ishizaka playing J.S. Bach's BWV 988 (Piano) - 20 Variatio 19 a 1 Clav
</figcaption>
</figure>
</section>
</details>
<hr />
<!-- b -->
<a name="b"></a>
<h4><a href="#b"><code><b></code></a></h4>
<p>
The HTML Bring Attention To element <code><b></code> is used to draw the reader's attention to the
element's contents, which are not otherwise granted special importance.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text which contains <b>a bring attention to element</b>.</p>
</section>
</details>
<hr />
<!-- bdi -->
<a name="bdi"></a>
<h4><a href="#bdi"><code><bdi></code></a></h4>
<p>
The HTML Bidirectional Isolate element <code><bdi></code> tells the browser's bidirectional algorithm
to treat the text it contains in isolation from its surrounding text.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text which contains <bdi>a bidirectional isolate element</bdi></p>
<p>The Arabic word for Internet is <bdi>Ψ§ΩΨ₯ΩΨͺΨ±ΩΨͺ</bdi>.</p>
</section>
</details>
<hr />
<!-- bdo -->
<a name="bdo"></a>
<h4><a href="#bdo"><code><bdo></code></a></h4>
<p>
The HTML Bidirectional Text Override element <code><bdo></code> overrides the current directionality
of text, so that the text within is rendered in a different direction.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text which contains a left-to-right <bdo dir="ltr">bidirectional text override
element</bdo>.</p>
<p>A paragraph of text which contains a right-to-left <bdo dir="rtl">bidirectional text override
element</bdo>.</p>
</section>
</details>
<hr />
<!-- blockquote -->
<a name="blockquote"></a>
<h4><a href="#blockquote"><code><blockquote></code></a></h4>
<p>
The HTML <code><blockquote></code> Element (or HTML Block Quotation Element) indicates that the
enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how
to change it). A URL for the source of the quotation may be given using the cite attribute, while a text
representation of the source can be given using the <code><cite></code> element.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<blockquote
cite="https://www.theguardian.com/books/2014/nov/20/ursula-k-le-guin-national-book-awards-speech">
<p>Books arenβt just commodities; the profit motive is often in conflict with the aims of art. We
live in capitalism, its power seems inescapable β but then, so did the divine right of kings.
Any human power can be resisted and changed by human beings. Resistance and change often begin
in art. Very often in our art, the art of words.</p>
<footer>β Ursula K. Le Guin,
<cite><a title="Guardian article about Le Guin's acceptance speech at the 2014 National Book Awards"
href="https://www.theguardian.com/books/2014/nov/20/ursula-k-le-guin-national-book-awards-speech">2014
National Book Awards Speech</a></cite>
</footer>
</blockquote>
</section>
</details>
<hr />
<!-- button -->
<a name="button"></a>
<h4><a href="#button"><code><button></code></a></h4>
<p>
The HTML <code><button></code> element represents a clickable button, used to submit forms or anywhere
in a document for accessible, standard button functionality.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<button>A button element</button>
</section>
</details>
<hr />
<!-- cite -->
<a name="cite"></a>
<h4><a href="#cite"><code><cite></code></a></h4>
<p>
The HTML Citation element <code><cite></code> is used to describe a reference to a cited creative
work, and must include the title of that work.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<blockquote cite="https://lettersofnote.com/2013/10/28/make-your-soul-grow/">
<p>What I had to say to you, moreover, would not take long, to wit: Practice any art, music,
singing, dancing, acting, drawing, painting, sculpting, poetry, fiction, essays, reportage, no
matter how well or badly, not to get money and fame, but to experience becoming, to find out
whatβs inside you, to make your soul grow.</p>
<p>Seriously! I mean starting right now, do art and do it for the rest of your lives. Draw a funny
or nice picture of Ms. Lockwood, and give it to her. Dance home after school, and sing in the
shower and on and on. Make a face in your mashed potatoes. Pretend youβre Count Dracula.</p>
<footer>β Kurt Vonnegut,
<cite><a title="A Man Without a Country available for purchase on bookshop.org"
href="https://lettersofnote.com/2013/10/28/make-your-soul-grow//">A letter to the
students of Xavier High School, 2006</a></cite>
</footer>
</blockquote>
</section>
</details>
<hr />
<!-- code -->
<a name="code"></a>
<h4><a href="#code"><code><code></code></a></h4>
<p>
The HTML <code><code></code> element displays its contents styled in a fashion intended to indicate
that the text is a short fragment of computer code. By default, the content text is displayed using the user
agent's default monospace font.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text which contains <code>a code element</code>.</p>
</section>
</details>
<hr />
<!-- data -->
<a name="data"></a>
<h4><a href="#data"><code><data></code></a></h4>
<p>
The HTML <code><data></code> element links a given content with a machine-readable translation. If the
content is time- or date-related, the <time> element must be used.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h5>WNBA Career Assist Leaders</h5>
<ol>
<li><data value="2831">Sue Bird</data> (2831)</li>
<li><data value="2599">Ticha Penicheiro</data> (2599)</li>
<li><data value="2345">Lindsay Whalen</data> (2345)</li>
<li><data value="1867">Diana Taurasi</data> (1867)</li>
<li><data value="1708">Becky Hammon</data> (1708)</li>
</ol>
</section>
</details>
<hr />
<!-- datalist -->
<a name="datalist"></a>
<h4><a href="#datalist"><code><datalist></code></a></h4>
<p>
The HTML <code><datalist></code> element contains a set of <code><option></code> elements that
represent the permissible or recommended options available to choose from within other controls.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<label for="beverage-choice">Favorite hot beverage:</label>
<input list="beverage-choice" id="beverage-choice-input" name="beverage-choice" />
<datalist id="beverage-choice">
<option value="Aleberry">
<option value="Anijsmelk">
<option value="Apple cider">
<option value="AsiΓ‘tico">
<option value="Atole">
<option value="Bajigur">
<option value="Bandrek">
<option value="Blue Blazer">
<option value="Bouillon">
<option value="Butter tea">
<option value="Caudle">
<option value="Espresso">
<option value="Greyana rakiya">
<option value="Grog">
<option value="Herbal tea">
<option value="Hot buttered rum">
<option value="Hot toddy">
<option value="Irish coffee">
<option value="Job's tears">
<option value="Malted milk">
<option value="Mate cocido">
<option value="Mulled wine">
<option value="Posset">
<option value="Postum">
<option value="RΓΌdesheimer Kaffee">
<option value="Sake">
<option value="Salep">
<option value="Sassafras tea">
<option value="Smoking Bishop">
<option value="Tea">
<option value="Wedang Jahe">
</datalist>
</section>
</details>
<hr />
<!-- del -->
<a name="del"></a>
<h4><a href="#del"><code><del></code></a></h4>
<p>
The HTML <code><del></code> element represents a range of text that has been deleted from a document.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text preceeding an <code><del></code> element.</p>
<del>
<p>A paragraph of text within a <code><del></code> element.</p>
</del>
<p>A paragraph of text following an <code><del></code> element.</p>
</section>
</details>
<hr />
<!-- details -->
<a name="details"></a>
<a name="summary"></a>
<h4><a href="#details"><code><details></code></a></h4>
<p>Also: <a href="#summary"><code><summary></code></a>
<p>
The HTML Details Element <code><details></code> creates a disclosure widget in which information is
visible only when the widget is toggled into an "open" state.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<details>
<summary>A summary element contained within a details element.</summary>
<section>The contents of the details element.</section>
</details>
</section>
</details>
<hr />
<!-- dfn -->
<a name="dfn"></a>
<h4><a href="#dfn"><code><dfn></code></a></h4>
<p>
The HTML Definition element (<code><dfn></code>) is used to indicate the term being defined within the
context of a definition phrase or sentence. The <code><p></code> element, the
<code><dt></code>/<code><dd></code> pairing, or the <code><section></code> element which
is the nearest ancestor of the <code><dfn></code> is considered to be the definition of the term.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A <dfn id="def-validator">human</dfn> is a person; a human being, distinct from animals, aliens, and
especially charming, life-like, humanoid robots.</p>
</section>
</details>
<hr />
<!-- div -->
<a name="div"></a>
<h4><a href="#div"><code><div></code></a></h4>
<p>
The HTML Content Division element (<code><div></code>) is the generic container for flow content. It
has no effect on the content or layout until styled using CSS.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A paragraph of text preceeding a div element.</p>
<div>
<p>A paragraph of text within a div element.</p>
</div>
<p>A paragraph of text following a div element.</p>
</section>
</details>
<hr />
<!-- dl -->
<a name="dl"></a>
<a name="dd"></a>
<a name="dt"></a>
<h4><a href="#dl"><code><dl></code></a></h4>
<p>Also: <a href="#dd"><code><dd></code></a>,
<a href="#dt"><code><dt></code></a>
</p>
<p>
The HTML <code><dl></code> element represents a description list. The element encloses a list of
groups of terms (specified using the <code><dt></code> element) and descriptions (provided by
<code><dd></code> elements). Common uses for this element are to implement a glossary or to display
metadata (a list of key-value pairs).
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h5>Count to 10 in <a href="https://en.wikipedia.org/wiki/Esperanto"
title="Read more about Esperanto on Wikipedia">Esperanto</a></h5>
<dl>
<dt>zero</dt>
<dd>nul</dd>
<dt>one</dt>
<dd>unu</dd>
<dt>two</dt>
<dd>du</dd>
<dt>three</dt>
<dd>tri</dd>
<dt>four</dt>
<dd>kvar</dd>
<dt>five</dt>
<dd>kvin</dd>
<dt>six</dt>
<dd>ses</dd>
<dt>seven</dt>
<dd>sep</dd>
<dt>eight</dt>
<dd>ok</dd>
<dt>nine</dt>
<dd>naΕ</dd>
<dt>ten</dt>
<dd>dek</dd>
</dl>
</section>
</details>
<hr />
<!-- em -->
<a name="em"></a>
<h4><a href="#em"><code><em></code></a></h4>
<p>
The HTML <code><em></code> element marks text that has stress emphasis. The <code><em></code>
element can be nested, with each level of nesting indicating a greater degree of emphasis.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<p>A stressful paragraph of text which contains <em>a stress emphasis element, <em>which contains a
nested stress emphasis element</em></em>.</p>
</section>
</details>
<aside></aside>
<hr />
<!-- fieldset -->
<!-- label -->
<!-- legend -->
<a name="fieldset"></a>
<a name="label"></a>
<a name="legend"></a>
<h4><a href="#fieldset"><code><fieldset></code></a></h4>
<p>Also: <a href="#label"><code><label></code>, <a href="#legend"><code><legend></code></a>
<p>
The HTML <code><fieldset></code> element is used to group several controls as well as labels
(<code><label></code>) within a web form.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<form>
<fieldset>
<legend>Favorite moon phase</legend>
<label for="new-moon"><input type="radio" id="new-moon" name="moon-phase">π New
Moon</label>
<br />
<label for="waxing-crescent"><input type="radio" id="waxing-crescent" name="moon-phase">π
Waxing Crescent</label>
<br />
<label for="first-quarter"><input type="radio" id="first-quarter" name="moon-phase">π First
Quarter</label>
<br />
<label for="waxing-gibbous"><input type="radio" id="waxing-gibbous" name="moon-phase">π
Waxing Gibbous</label>
<br />
<label for="full-moon"><input type="radio" id="full-moon" name="moon-phase">π Full
Moon</label>
<br />
<label for="waning-gibbous"><input type="radio" id="waning-gibbous" name="moon-phase">π
Waning Gibbous</label>
<br />
<label for="last-quarter"><input type="radio" id="last-quarter" name="moon-phase">π Last
Quarter</label>
<br />
<label for="waning-crescent"><input type="radio" id="waning-crescent" name="moon-phase">π
Waning Crescent</label>
</fieldset>
<fieldset>
<legend>Favorite nocturnal animal</legend>
<label for="bat"><input type="radio" id="bat" name="animal">π¦ Bat</label>
<label for="mouse"><input type="radio" id="mouse" name="animal">π Mouse</label>
<label for="owl"><input type="radio" id="owl" name="animal">π¦ Owl</label>
<label for="raccoon"><input type="radio" id="raccoon" name="animal">π¦ Raccoon</label>
<label for="skunk"><input type="radio" id="skunk" name="animal">𦨠Skunk</label>
</fieldset>
</form>
</details>
<hr />
<!-- figure -->
<a name="figure"></a>
<a name="figcaption"></a>
<a name="img"></a>
<h4><a href="#figure"><code><figure></code></a></h4>
<p>Also: <a href="#figcaption"><code><figcaption></code>, <a
href="#img"><code><img></code></a>
<p>
The HTML <code><figure></code> (Figure With Optional Caption) element represents
self-contained content, potentially with an optional caption, which is specified using the
(<code><figcaption></code>) element.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<figure>
<img src="./images/matthew-howell-qGHYgcnVHbM-unsplash.jpg"
title="A bench overlooking the Hudson River in Croton Point Park, NY"
alt="A wooden bench, sitting on green grass, overlooking the Hudson River in Croton Point Park, NY under a bright, pale, blue sky.">
<figcaption>A figcaption element as the last child of its containing figure element.
</figcaption>
</figure>
</section>
</details>
<hr />
<!-- footer -->
<a name="footer"></a>
<h4><a href="#footer"><code><footer></code></a></h4>
<p>
The HTML <code><footer></code> element represents a footer for its nearest sectioning
content or sectioning root element. A footer typically contains information about the author
of the section, copyright data or links to related documents.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<footer>A footer element within its containing section element.</footer>
</section>
</details>
<hr />
<!-- form -->
<a name="form"></a>
<a name="textarea"></a>
<h4><a href="#form"><code><form></code></a></h4>
<p>Also: <a href="#textarea"><code><textarea></code></a>
<p>
The HTML <code><form></code> element represents a document section containing
interactive controls for submitting information.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form">More at MDN
β</a>
</p>
<details open>
<summary>Example</summary>
<form id="send-message-form" onsubmit="formElementHandler(event);">
<fieldset>
<legend>Send a message to a mythical water creature</legend>
<ol>
<li>
<label for="name">Your Name</label><br />
<input id="name" required />
</li>
<li>
<label for="message">Message</label><br />
<textarea id="message" required placeholder="Ahoy!" /></textarea>
</li>
<li>
<fieldset>
<legend>Mythical water creature</legend>
<label><input type="radio" name="mythical-sea-creature"
required />π³π΄ Kraken (<a
href="https://en.wikipedia.org/wiki/Kraken">more
info</a>)</label><br />
<label><input type="radio"
name="mythical-sea-creature" />π΄σ §σ ’σ ³σ £σ ΄σ Ώ Loch Ness
Monster (<a
href="https://en.wikipedia.org/wiki/Loch_Ness_Monster">more
info</a>)</label><br />
<label><input type="radio" name="mythical-sea-creature" />π¨π¦
Ogopogo (<a href="https://en.wikipedia.org/wiki/Ogopogo">more
info</a>)</label><br />
<label><input type="radio" name="mythical-sea-creature" />πΊπΈ Champ
(<a href="https://en.wikipedia.org/wiki/Champ_(folklore)">more
info</a>)</label><br />
</fieldset>
</li>
</ol>
</fieldset>
<button id="send-message-submit" type="submit">Send Message β</button>
</form>
</details>
<hr />
<!-- h1 -->
<a name="h1"></a>
<h4><a href="#h1"><code><h1></code></a></h4>
<p>
The HTML <code><h1></code> elements represent six levels of section headings.
<code><h1></code> is the highest section level and <code><h6></code> is the
lowest.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h1>An H1 Element</h1>
<p>A paragraph of text following the h1 section heading.</p>
</section>
</details>
<hr />
<!-- h2 -->
<a name="h2"></a>
<h4><a href="#h2"><code><h2></code></a></h4>
<p>
The HTML <code><h2></code> elements represent six levels of section headings.
<code><h1></code> is the highest section level and <code><h6></code> is the
lowest.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h2>An H2 Element</h2>
<p>A paragraph of text following the h2 section heading.</p>
</section>
</details>
<hr />
<!-- h3 -->
<a name="h3"></a>
<h4><a href="#h3"><code><h3></code></a></h4>
<p>
The HTML <code><h3></code> elements represent six levels of section headings.
<code><h1></code> is the highest section level and <code><h6></code> is the
lowest.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h3>An H3 Element</h3>
<p>A paragraph of text following the h3 section heading.</p>
</section>
</details>
<hr />
<!-- h4 -->
<a name="h4"></a>
<h4><a href="#h4"><code><h4></code></a></h4>
<p>
The HTML <code><h4></code> elements represent six levels of section headings.
<code><h1></code> is the highest section level and <code><h6></code> is the
lowest.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h4>An H4 Element</h4>
<p>A paragraph of text following the h4 section heading.</p>
</section>
</details>
<hr />
<!-- h5 -->
<a name="h5"></a>
<h4><a href="#h5"><code><h5></code></a></h4>
<p>
The HTML <code><h5></code> elements represent six levels of section headings.
<code><h1></code> is the highest section level and <code><h6></code> is the
lowest.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h5>An H5 Element</h5>
<p>A paragraph of text following the h5 section heading.</p>
</section>
</details>
<hr />
<!-- h6 -->
<a name="h6"></a>
<h4><a href="#h6"><code><h6></code></a></h4>
<p>
The HTML <code><h6></code> elements represent six levels of section headings.
<code><h1></code> is the highest section level and <code><h6></code> is the
lowest.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6">More at MDN β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<h6>An H6 Element</h6>
<p>A paragraph of text following the h6 section heading.</p>
</section>
</details>
<hr />
<!-- header -->
<a name="header"></a>
<h4><a href="#header"><code><header></code></a></h4>
<p>
The HTML <code><header></code> element represents introductory content, typically
a group of introductory or navigational aids. It may contain some heading elements but
also a logo, a search form, an author name, and other elements.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header">More at MDN
β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<footer>A header element within its containing section element.</footer>
</section>
</details>
<hr />
<!-- hgroup -->
<a name="hgroup"></a>
<h4><a href="#hgroup"><code><hgroup></code></a></h4>
<p>
The HTML <code><hgroup></code> element represents a multi-level heading for a
section of a document. It groups a set of <code><h1> - <h6></code> elements.
<br />
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup">More at MDN
β</a>
</p>
<details open>
<summary>Example</summary>
<section>
<hgroup>
<h1>An h1 element</h1>
<h2>An h2 element</h2>
<h3>An h3 element</h3>
</hgroup>
<p>A paragraph of text following an hgroup element.</p>
</section>
</details>
<hr />