-
Notifications
You must be signed in to change notification settings - Fork 0
/
reference.html
3978 lines (3958 loc) · 143 KB
/
reference.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="only light">
<meta name="Description"
content="Reference for the most common and popular HTML elements, their tag syntax, sample code, and examples">
<title>HTML Haus | Reference</title>
<link rel="icon" type="image/x-icon" href="img/favicon.ico">
<link rel="stylesheet" type="text/css" href="css/sane.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<!-- <base href="https://html.haus/reference.html"> -->
<script src="js/slot.js" defer></script>
</head>
<body>
<header>
<nav>
<a id="menu-title" href="index.html">HTML<img class="logo" src="img/house-with-tree.png"
alt="House with tree icon"></a>
<ul>
<li><a href="learn.html">Learn</a></li>
<li><a href="practice.html">Practice</a></li>
<li><a href="reference.html">Reference</a></li>
<li><a href="tools.html">Tools</a></li>
</ul>
</nav>
</header>
<main>
<h1>Reference HTML Elements</h1>
<p>This is a catalog of <abbr title="Hyper Text Markup Language">HTML</abbr> elements. There's also an <a
href="api/index.html"><abbr title="Application Programming Interface">API</abbr></a> and <a
href="templates.html">Templates</a> available.</p>
<details>
<summary>There's plenty of HTML reference documentation in the world, so <em>why build another?</em></summary>
<p>
Other reference documentation is either too verbose, meaning there's so much detail it makes it hard to find the
key parts that you need, or
it's too minimal, meaning there are important parts left off in favor of making it highly condensed. This
catalog aims to provide a goldilocks solution
by balancing comprehensive documentation with ease of use.
</p>
<p>
The goals of this catalog are to be clear, easy to use, and fast:
</p>
<ul>
<li><strong>Clear</strong> in that deprecated, obsolete, theoretical, or widely unsupported HTML elements and
attributes are not included.</li>
<li><strong>Easy to use</strong> means the entire reference is on a single page, making it easy to search and
navigate.</li>
<li><strong>Fast</strong> means that the page is rendered in vanilla HTML/CSS with minimal JavaScript and
images.</li>
</ul>
</details>
<h2>Search</h2>
<form>
<label>By element
<input id="searchInput" list="elementList" placeholder="e.g. div" />
<!-- See bottom of page for elementList -->
</label>
<input type="submit" value="Search">
</form>
<h2>Table of Contents</h2>
<p>
HTML is divided into different types of elements, each of which serves a purpose in structuring content for the
user. Some elements organize, some denote meaning, some add tabular structures, while others submit data or
interact with the page.
</p>
<div class="table-of-contents">
<div>
<details>
<summary><a href="#metadata">Metadata</a></summary>
<ul>
<li><a href="#head">head</a></li>
<li><a href="#title">title</a></li>
<li><a href="#style">style</a></li>
<li><a href="#link">link</a></li>
<li><a href="#base">base</a></li>
<li><a href="#meta">meta</a></li>
</ul>
</details>
<details>
<summary><a href="#sectioning">Sectioning</a></summary>
<ul>
<li><a href="#body">body</a></li>
<li><a href="#header">header</a></li>
<li><a href="#nav">nav</a></li>
<li><a href="#main">main</a></li>
<li><a href="#aside">aside</a></li>
<li><a href="#article">article</a></li>
<li><a href="#section">section</a></li>
<li><a href="#h1-h6">h1-h6</a></li>
<li><a href="#footer">footer</a></li>
</ul>
</details>
<details>
<summary><a href="#block-content">Block content</a></summary>
<ul>
<li><a href="#p">p</a></li>
<li><a href="#hr">hr</a></li>
<li><a href="#div">div</a></li>
<li><a href="#ol">ol</a></li>
<li><a href="#li">li</a></li>
<li><a href="#ul">ul</a></li>
<li><a href="#figure">figure</a></li>
<li><a href="#figcaption">figcaption</a></li>
<li><a href="#blockquote">blockquote</a></li>
<li><a href="#pre">pre</a></li>
<li><a href="#dl">dl</a></li>
<li><a href="#dt">dt</a></li>
<li><a href="#dd">dd</a></li>
</ul>
</details>
<details>
<summary><a href="#inline-content">Inline content</a></summary>
<ul>
<li><a href="#a">a</a></li>
<li><a href="#abbr">abbr</a></li>
<li><a href="#b">b</a></li>
<li><a href="#br">br</a></li>
<li><a href="#cite">cite</a></li>
<li><a href="#code">code</a></li>
<li><a href="#data">data</a></li>
<li><a href="#dfn">dfn</a></li>
<li><a href="#em">em</a></li>
<li><a href="#i">i</a></li>
<li><a href="#kbd">kbd</a></li>
<li><a href="#mark">mark</a></li>
<li><a href="#q">q</a></li>
<li><a href="#s">s</a></li>
<li><a href="#samp">samp</a></li>
<li><a href="#small">small</a></li>
<li><a href="#span">span</a></li>
<li><a href="#strong">strong</a></li>
<li><a href="#sub">sub</a></li>
<li><a href="#sup">sup</a></li>
<li><a href="#time">time</a></li>
<li><a href="#u">u</a></li>
<li><a href="#var">var</a></li>
<li><a href="#wbr">wbr</a></li>
</ul>
</details>
</div>
<div>
<details>
<summary><a href="#multimedia">Multimedia</a></summary>
<ul>
<li><a href="#img">img</a></li>
<li><a href="#map">map</a></li>
<li><a href="#area">area</a></li>
<li><a href="#audio">audio</a></li>
<li><a href="#video">video</a></li>
<li><a href="#track">track</a></li>
</ul>
</details>
<details>
<summary><a href="#embedded">Embedded</a></summary>
<ul>
<li><a href="#embed">embed</a></li>
<li><a href="#iframe">iframe</a></li>
<li><a href="#object">object</a></li>
<li><a href="#param">param</a></li>
<li><a href="#picture">picture</a></li>
<li><a href="#source">source</a></li>
</ul>
</details>
<details>
<summary><a href="#scripting">Scripting</a></summary>
<ul>
<li><a href="#script">script</a></li>
<li><a href="#noscript">noscript</a></li>
<li><a href="#canvas">canvas</a></li>
</ul>
</details>
<details>
<summary><a href="#edits">Edits</a></summary>
<ul>
<li><a href="#del">del</a></li>
<li><a href="#ins">ins</a></li>
</ul>
</details>
</div>
<div>
<details>
<summary><a href="#tables">Tables</a></summary>
<ul>
<li><a href="#table">table</a></li>
<li><a href="#caption">caption</a></li>
<li><a href="#tr">tr</a></li>
<li><a href="#td">td</a></li>
<li><a href="#th">th</a></li>
<li><a href="#col">col</a></li>
<li><a href="#colgroup">colgroup</a></li>
<li><a href="#thead">thead</a></li>
<li><a href="#tbody">tbody</a></li>
<li><a href="#tfoot">tfoot</a></li>
</ul>
</details>
<details>
<summary><a href="#forms">Forms</a></summary>
<ul>
<li><a href="#form">form</a></li>
<li><a href="#fieldset">fieldset</a></li>
<li><a href="#legend">legend</a></li>
<li><a href="#label">label</a></li>
<li><a href="#input">input</a></li>
<li><a href="#select">select</a></li>
<li><a href="#option">option</a></li>
<li><a href="#optgroup">optgroup</a></li>
<li><a href="#datalist">datalist</a></li>
<li><a href="#textarea">textarea</a></li>
<li><a href="#meter">meter</a></li>
<li><a href="#progress">progress</a></li>
<li><a href="#button">button</a></li>
<li><a href="#output">output</a></li>
</ul>
</details>
<details>
<summary><a href="#interactive">Interactive</a></summary>
<ul>
<li><a href="#details">details</a></li>
<li><a href="#summary">summary</a></li>
<li><a href="#dialog">dialog</a></li>
</ul>
</details>
<details>
<summary><a href="#web-components">Web Components</a></summary>
<ul>
<li><a href="#template">template</a></li>
<li><a href="#slot">slot</a></li>
</ul>
</details>
</div>
</div>
<h2>Using the Catalog</h2>
<h3>Structure</h3>
<p>Each element in the catalog has name, description, display, code, and attributes. These appear in a compact
layout as follows:</p>
<article>
<div class="name">
<p><Name of Element></p>
</div>
<div class="description">
<p>Description of the element giving its purpose and usage</p>
</div>
<div class="display">
Sample display
</div>
<div class="code">
<textarea><p>Sample display</p></textarea>
</div>
<div class="attributes">
<ul>
<li>List of attributes</li>
</ul>
</div>
</article>
<p>Here's an example of the abbr or abbreviation tag:</p>
<article>
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr"><abbr></a></p>
</div>
<div class="description">
<p>Used to capture an abbreviation, by default this displays a tooltip of the 'title' attribute on hover</p>
</div>
<div class="display">
<abbr title="abbreviation">abbr</abbr>
</div>
<div class="code">
<textarea><abbr title="abbreviation">abbr</abbr></textarea>
</div>
<div class="attributes">
<ul>
<li>title, determines tooltip text that user sees upon hovering over the abbreviation tag</li>
</ul>
</div>
</article>
<h3>Types of Tags</h3>
<p>Other HTML references focus on categorizing elements as having normal or self closing tags. This one does not.
Since example code is provided with each element, it
should be clear which elements have opening and closing tags and which have self closing tags. In cases where this
really matters,
the description will specify which type of tag the element uses.
</p>
<h3 id="global-attributes">Global Attributes</h3>
<p>
There are common HTML attributes that apply to every element. This list is omitted from the reference, because
it would be incredibly duplicative to reproduce them under each element. The common global HTML attributes:
</p>
<ul>
<li>class, used to group elements together, as well as attach CSS styles to them collectively</li>
<li>data-*, allows you to attach custom data to an HTML element, opening a world of possibility</li>
<li>draggable, defines whether an element can be dragged by the cursor or mouse</li>
<li>hidden, specifies whether the element should be visible or not</li>
<li>id, used to identify individual elements, mostly for the purpose of attaching CSS styles</li>
<li>inputmode, allows you to specify a hint for the end user editing this element</li>
<li>style, used to apply in line CSS styles, as the example above for style="color: red"</li>
<li>tabindex, allows you to specify whether an element should be focusable and when</li>
<li>title, allows you to specify extra information about an element</li>
</ul>
<p>
This concludes the section on using the catalog. On to the elements!
</p>
<hr>
<h2>Catalog</h2>
<h3 id="metadata">Metadata</h3>
<p>Metadata is data that describes other data or provides information in the form of a label. For an HTML document,
that means data about the title of the document, its relationship to other resources, how various user agents
should treat it, and more.
</p>
<article id="head">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head"><head></a></p>
</div>
<div class="description">
<p>Container for all metadata and required as a part of any HTML document</p>
</div>
<div class="display">
<p>Does not display</p>
</div>
<div class="code">
<textarea>
<head>Elements that add metadata go here</head>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="title">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title"><title></a></p>
</div>
<div class="description">
<p>Set the page's title, which displays in the browser's menu bar</p>
</div>
<div class="display">
<p>See title in browser window</p>
</div>
<div class="code">
<textarea>
<title>HTML Haus | Reference Elements</title>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="style">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style"><style></a></p>
</div>
<div class="description">
<p>Defines CSS styles to be applied to the document</p>
</div>
<div class="display">
<p style="color: lightcoral">Tag does not display but the effect of CSS shown here</p>
</div>
<div class="code">
<textarea rows="6">
<style>
p {
color: lightcoral;
}
</style>
</textarea>
</div>
<div class="attributes">
<ul>
<li>media: defines media to apply style to, accepts a media query value, defaulting to all if attribute
missing</li>
<li>nonce: cryptographic nonce (number used once) used to whitelist inline styles, see <a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src">style-src
CSP</a></li>
<li>title: specifies an <a
href="https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets">alternative style sheet
set</a></li>
</ul>
</div>
</article>
<article id="link">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link"><link></a></p>
</div>
<div class="description">
<p>Links to an external resource, such as a stylesheet, favicon, or JavaScript file</p>
</div>
<div class="display">
<p>Does not display</p>
</div>
<div class="code">
<textarea>
<link rel="stylesheet" type="text/css" href="styles.css">
</textarea>
</div>
<div class="attributes">
<ul>
<li>href: hypertext reference or address of the external resources</li>
<li>rel: relationship of linked document to current document, e.g. "stylesheet"</li>
<li>type: MIME type such as text/html or text/css</li>
</ul>
</div>
</article>
<article id="base">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base"><base></a></p>
</div>
<div class="description">
<p>Specifies the base URL for all relative URLs in an HTML document</p>
</div>
<div class="display">
<p>Does not display</p>
</div>
<div class="code">
<textarea><base href="https://html.haus/"></textarea>
</div>
<div class="attributes">
<ul>
<li>href: hypertext reference or address</li>
<li>target: keyword (_self, _blank, _parent, _top) or name of default browsing context to display the result
of links</li>
</ul>
</div>
</article>
<article id="meta">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta"><meta></a></p>
</div>
<div class="description">
<p>Sets metadata not covered by other tags</p>
</div>
<div class="display">
<p>Does not display</p>
</div>
<div class="code">
<textarea rows="7">
<meta charset="utf-8" />
<meta http-equiv="refresh" content="2; url=https://html.haus/reference.html">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Reference for the most common and popular HTML elements, their tag syntax, sample code, and examples">
</textarea>
</div>
<div class="attributes">
<ul>
<li>charset: declares the page's character encoding (please just use UTF-8)</li>
<li>content: contains the value for the http-equiv or name attribute</li>
<li>http-equiv: defines directives, allowing values named after HTTP headers</li>
<li>
<ul>
<li>content-security-policy: define a content policy for the current page, protecting against cross-site
scripting</li>
<li>refresh: number of seconds until page should be reloaded/redirected, requires inclusion of '; url='
</li>
</ul>
</li>
<li>name: defines name of document-level metadata</li>
<li>
<ul>
<li>application-name: name of web application running in page (only used for applications)</li>
<li>author</li>
<li>description: short and accurate summary of the page's content</li>
<li>generator: identifier of software that generated page</li>
<li>keywords: words relevant to the page's content separated by commas</li>
<li>referrer: address of previous webpage</li>
<li>theme-color: suggested color used to customize display of page; content attribute accepts valid CSS
color</li>
<li>color-scheme: specifies light or dark color modes (accepts normal, light | dark, only light)</li>
<li>publisher</li>
<li>robots: defines behavior that web crawlers should follow</li>
<li>viewport: used by mobile devices to hint at the initial size of the viewport</li>
</ul>
</li>
</ul>
</div>
</article>
<hr>
<h3 id="sectioning">Sectioning</h3>
<p>Sectioning elements are used to organize a document into logical pieces. Think of this as your document's
outline. Elements give logical structure not
visual structure. I've depicted it visually below, so you can get a general sense for how <em>most</em> pages
employ these elements. However, there's no
relationship between HTML <em>logical structure</em> and how it's visually presented:
</p>
<div id="ex-layout">
<p>body</p>
<div id="ex-header">
<p>header</p>
<p style="text-align: center">nav</p>
</div>
<div id="ex-wrapper">
<div id="ex-main">
<p>main</p>
<h1>h1</h1>
<h2>h2</h2>
<h3>h3</h3>
<h4>h4</h4>
<h5>h5</h5>
<h6>h6</h6>
</div>
<div id="ex-aside">
<p>aside</p>
</div>
</div>
<div id="ex-footer">
<p>footer</p>
</div>
</div>
<p>
For the sectioning elements, the display portion of the reference may simply say 'Displays content' which means
that the tag does not inherently have a
specific display, but instead that it simply displays what it wraps around or contains. For the sake of
conciseness, the reference does not always show that content.
</p>
<article id="body">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body"><body></a></p>
</div>
<div class="description">
<p>Container for all visible content and a required part of any HTML document</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="6">
<body>
<p>
All the document's content goes here
</p>
</body>
</textarea>
</div>
<div class="attributes">
<p>Attributes on the body tag all assign a function to be called when a certain event happens:</p>
<ul>
<li>onafterprint</li>
<li>onbeforeprint</li>
<li>onbeforeunload</li>
<li>onblur</li>
<li>onerror</li>
<li>onfocus</li>
<li>onhashchange</li>
<li>onlanguagechange</li>
<li>onload</li>
<li>onmessage</li>
<li>onoffline</li>
<li>ononline</li>
<li>onpopstate</li>
<li>onredo</li>
<li>onresize</li>
<li>onstorage</li>
<li>onundo</li>
<li>onunload</li>
</ul>
</div>
</article>
<article id="header">
<div class="name">
<h2><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header"><header></a></h2>
</div>
<div class="description">
<p>Container for introductory content, navigation, site title, a logo, etc.</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="4">
<header>
<img src="logo.png" alt="site logo">
</header>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="nav">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav"><nav></a></p>
</div>
<div class="description">
<p>Section that contains navigational links (menus, tables of content, indexes), often found in header</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="8">
<header>
<nav>
<a href="learn.html">Learn</a>
<a href="reference.html">Reference</a>
<a href="templates.html">Templates</a>
</nav>
</header>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="main">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main"><main></a></p>
</div>
<div class="description">
<p>Container for holding the content of the main or primary purpose of the document</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="6">
<main>
<p>
This is a catalog of HTML tags, which can be used for reference.
</p>
</main>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="aside">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside"><aside></a></p>
</div>
<div class="description">
<p>Section of content that is indirectly related to the main section (e.g. sidebars, call-out boxes)</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="9">
<p>HTML stands for Hyper Text Markup Language, and although it's not a programming language, it is the foundation of the web.</p>
<aside>
<p>CSS, Cascading Style Sheets, work with HTML to help make up the web's view layer.</p>
</aside>
<p>HTML is called a markup language, because it's a way to <em>mark up</em> regular text to specify structure. </p>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="article">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article"><article></a></p>
</div>
<div class="description">
<p>Self-contained portion of a document which is designed to be independently distributable or reusable (e.g.
forum post, magazine article, blog entry)</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="10">
<article>
<h2>HTML Haiku</h2>
<p>
The Website you seek <br>
Cannot be located, but <br>
Countless more exist. <br>
-- Joy Rothke
</p>
</article>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="section">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section"><section></a></p>
</div>
<div class="description">
<p>Stand alone section that is not represented by another more specific content section element. This is the
sectioning version of a div or span (generic, without specific semantic meaning), but should not be used in
place of a div. A section should still appear in a document outline.</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="10">
<section>
<h1>Glossary</h1>
<ol>
<li>CSS: Cascading Style Sheets, the styling language of the web</li>
<li>HTML: Hyper Text Markup Language, web technology used to define meaning and structure</li>
<li>JS: JavaScript, the programming or scripting language of the web</li>
</ol>
</section>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="h1-h6">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements"><h1-h6></a></p>
</div>
<div class="description">
<p>Descending levels of section headings which are used to give titles and introduce content. <h1>
represents the highest level section. It's possible to have multiple sets of headings on a page, as long as
they apply to different sections.</p>
</div>
<div class="display">
<span style="font-weight: bold; font-size: 0.9rem">Favorite Books</span>
<p style="font-weight: bold; font-size: 0.8rem">Fantasy</p>
<p style="font-weight: bold; font-size: 0.7rem">High/Epic</p>
<ul style="font-size: 0.6rem">
<li>The Lord of the Rings</li>
<li>The Wheel of Time</li>
</ul>
<p style="font-weight: bold; font-size: 0.7rem">Magical Realism</p>
<p style="font-weight: bold; font-size: 0.8rem">Science Fiction</p>
</div>
<div class="code">
<textarea rows="10">
<h1>Favorite Books</h1>
<h2>Fantasy</h2>
<h3>High/Epic</h3>
<ul>
<li>The Lord of the Rings</li>
<li>The Wheel of Time</li>
</ul>
<h3>Magical Realism</h3>
<h2>Science Fiction</h2>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="footer">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer"><footer></a></p>
</div>
<div class="description">
<p>Footer for nearest content section (article, aside, nav, section) or root element (body)</p>
</div>
<div class="display">
<p>Displays content</p>
</div>
<div class="code">
<textarea rows="4">
<footer>
<span id="copyright">© 2020 HTML.Haus</span>
</footer>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<hr>
<h3 id="block-content">Block content</h3>
<p>
Organize your text, establish the structure of your content, and its purpose using text content elements.
</p>
<article id="p">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p"><p></a></p>
</div>
<div class="description">
<p>Paragraph element is a block element that groups together related content</p>
</div>
<div class="display">
<p>Paragraph here</p>
</div>
<div class="code">
<textarea>
<p>Paragraph here</p>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="hr">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr"><hr></a></p>
</div>
<div class="description">
<p>Horizontal rule is a suggested break in content, indicating when subject matter has changed</p>
</div>
<div class="display">
<hr>
</div>
<div class="code">
<textarea>
<hr>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="div">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"><div></a></p>
</div>
<div class="description">
<p>Generic element to divide up content and style it; has no semantic meaning at all</p>
</div>
<div class="display">
<div>Divided, we fall</div>
</div>
<div class="code">
<textarea>
<div>Divided, we fall</div>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="ol">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol"><ol></a></p>
</div>
<div class="description">
<p>Ordered list that typically displays as sequential numbers</p>
</div>
<div class="display">
<ol>
<li>Wake up</li>
<li>Brush teeth</li>
<li>Learn code</li>
</ol>
</div>
<div class="code">
<textarea rows="6">
<ol>
<li>Carrots</li>
<li>Peas</li>
<li>Tomatoes</li>
</ol>
</textarea>
</div>
<div class="attributes">
<ul>
<li>reversed: specify whether list should be in reverse order</li>
<li>start: integer to start counting the list from (must be numeral: 1, 2, 3)</li>
<li>type: sets numbering type (letters [a, A], roman numerals [i, I], numbers [1, default])</li>
</ul>
</div>
</article>
<article id="li">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"><li></a></p>
</div>
<div class="description">
<p>List items must be nested in a list element and represent individual entries</p>
</div>
<div class="display">
<ol>
<li>HTML</li>
<li>CSS</li>
<li value="4">JS</li>
</ol>
</div>
<div class="code">
<textarea rows="6">
<ol>
<li>HTML</li>
<li>CSS</li>
<li value="4">JS</li>
</ol>
</textarea>
</div>
<div class="attributes">
<ul>
<li>value: current value of ordered list item</li>
</ul>
</div>
</article>
<article id="ul">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul"><ul></a></p>
</div>
<div class="description">
<p>Unordered list that typically displays as bulletpoints</p>
</div>
<div class="display">
<ul>
<li>Peas</li>
<li>Tomatoes</li>
<li>Carrots</li>
</ul>
</div>
<div class="code">
<textarea rows="6">
<ul>
<li>Peas</li>
<li>Tomatoes</li>
<li>Carrots</li>
</ul>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="figure">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure"><figure></a></p>
</div>
<div class="description">
<p>Image, graph, diagram, chart, codeblock or other visual element referenced as a single element</p>
</div>
<div class="display">
<figure>
<img src="https://html.haus/img/red-house-150.jpg" alt="Red house on side of green hill">
</figure>
</div>
<div class="code">
<textarea rows="5">
<figure>
<img src="https://html.haus/img/red-house-150.jpg" alt="Red house on side of green hill">
</figure>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="figcaption">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption"><figcaption></a></p>
</div>
<div class="description">
<p>An editorial or illustrative caption<sup><a href="https://thoughtbot.com/blog/alt-vs-figcaption">1</a></sup>
for a figure or a collection of media contained as one figure</p>
</div>
<div class="display">
<figure>
<img src="https://html.haus/img/red-house-150.jpg" alt="Red house on side of green hill">
<figcaption>HTML's Red Haus</figcaption>
</figure>
</div>
<div class="code">
<textarea rows="6">
<figure>
<img src="https://html.haus/img/red-house-150.jpg" alt="Red house on side of green hill">
<figcaption>HTML's Red Haus</figcaption>
</figure>
</textarea>
</div>
<div class="attributes">
<p><a href="#global-attributes">global attributes</a></p>
</div>
</article>
<article id="blockquote">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote"><blockquote></a></p>
</div>
<div class="description">
<p>Extended quotation that should be indented and separately credited as part of another work</p>
</div>
<div class="display">
<blockquote cite="https://hamlet.com/">
To be, or not to be, that is the question!
<cite>-Hamlet</cite>
</blockquote>
</div>
<div class="code">
<textarea rows="5">
<blockquote cite="https://hamlet.com/">
To be, or not to be, that is the question!
<cite>-Hamlet</cite>
</blockquote>
</textarea>
</div>
<div class="attributes">
<ul>
<li>cite: URL that designates the source of the quote</li>
</ul>
</div>
</article>
<article id="pre">
<div class="name">
<p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre"><pre></a></p>
</div>
<div class="description">
<p>Preformatted text that should be treated and rendered exactly as it is input</p>