lib/phlex/html/standard_elements.rb

Lines

100%

105 of 105 covered

Branches

โ€”

0 of 0 covered

Methods

โ€”

0 of 0 covered

1# frozen_string_literal: true
2
3# Standard HTML elements accept content and always have a closing tag.
41module Phlex::HTML::StandardElements
51 extend Phlex::SGML::Elements
6
7 # Outputs an `<a>` tag.
8 #
9 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/a)
10 # [Spec](https://html.spec.whatwg.org/#the-a-element)
111 register_element def a(**attributes, &content) = nil
12
13 # Outputs an `<abbr>` tag.
14 #
15 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/abbr)
16 # [Spec](https://html.spec.whatwg.org/#the-abbr-element)
171 register_element def abbr(**attributes, &content) = nil
18
19 # Outputs an `<address>` tag.
20 #
21 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/address)
22 # [Spec](https://html.spec.whatwg.org/#the-address-element)
231 register_element def address(**attributes, &content) = nil
24
25 # Outputs an `<article>` tag.
26 #
27 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/article)
28 # [Spec](https://html.spec.whatwg.org/#the-article-element)
291 register_element def article(**attributes, &content) = nil
30
31 # Outputs an `<aside>` tag.
32 #
33 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/aside)
34 # [Spec](https://html.spec.whatwg.org/#the-aside-element)
351 register_element def aside(**attributes, &content) = nil
36
37 # Outputs an `<audio>` tag.
38 #
39 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/audio)
40 # [Spec](https://html.spec.whatwg.org/#the-audio-element)
41 # [Can I Use?](https://caniuse.com/audio)
421 register_element def audio(**attributes, &content) = nil
43
44 # Outputs a `<b>` tag.
45 #
46 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/b)
47 # [Spec](https://html.spec.whatwg.org/#the-b-element)
481 register_element def b(**attributes, &content) = nil
49
50 # Outputs a `<bdi>` tag.
51 #
52 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/bdi)
53 # [Spec](https://html.spec.whatwg.org/#the-bdi-element)
541 register_element def bdi(**attributes, &content) = nil
55
56 # Outputs a `<bdo>` tag.
57 #
58 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/bdo)
59 # [Spec](https://html.spec.whatwg.org/#the-bdo-element)
601 register_element def bdo(**attributes, &content) = nil
61
62 # Outputs a `<blockquote>` tag.
63 #
64 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/blockquote)
65 # [Spec](https://html.spec.whatwg.org/#the-blockquote-element)
661 register_element def blockquote(**attributes, &content) = nil
67
68 # Outputs a `<body>` tag.
69 #
70 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/body)
71 # [Spec](https://html.spec.whatwg.org/#the-body-element)
721 register_element def body(**attributes, &content) = nil
73
74 # Outputs a `<button>` tag.
75 # The `<button>` element is an interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology to perform an action, such as submitting a form or opening a dialog.
76 #
77 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/button)
78 # [Spec](https://html.spec.whatwg.org/#the-button-element)
791 register_element def button(**attributes, &content) = nil
80
81 # Outputs a `<canvas>` tag.
82 #
83 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/canvas)
84 # [Spec](https://html.spec.whatwg.org/#the-canvas-element)
851 register_element def canvas(**attributes, &content) = nil
86
87 # Outputs a `<caption>` tag.
88 #
89 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/caption)
90 # [Spec](https://html.spec.whatwg.org/#the-caption-element)
911 register_element def caption(**attributes, &content) = nil
92
93 # Outputs a `<cite>` tag.
94 #
95 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/cite)
96 # [Spec](https://html.spec.whatwg.org/#the-cite-element)
971 register_element def cite(**attributes, &content) = nil
98
99 # Outputs a `<code>` tag.
100 #
101 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/code)
102 # [Spec](https://html.spec.whatwg.org/#the-code-element)
1031 register_element def code(**attributes, &content) = nil
104
105 # Outputs a `<colgroup>` tag.
106 #
107 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/colgroup)
108 # [Spec](https://html.spec.whatwg.org/#the-colgroup-element)
1091 register_element def colgroup(**attributes, &content) = nil
110
111 # Outputs a `<data>` tag.
112 #
113 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/data)
114 # [Spec](https://html.spec.whatwg.org/#the-data-element)
1151 register_element def data(**attributes, &content) = nil
116
117 # Outputs a `<datalist>` tag.
118 #
119 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/datalist)
120 # [Spec](https://html.spec.whatwg.org/#the-datalist-element)
1211 register_element def datalist(**attributes, &content) = nil
122
123 # Outputs a `<dd>` tag.
124 #
125 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/dd)
126 # [Spec](https://html.spec.whatwg.org/#the-dd-element)
1271 register_element def dd(**attributes, &content) = nil
128
129 # Outputs a `<del>` tag.
130 #
131 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/del)
132 # [Spec](https://html.spec.whatwg.org/#the-del-element)
1331 register_element def del(**attributes, &content) = nil
134
135 # Outputs a `<details>` tag.
136 #
137 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/details)
138 # [Spec](https://html.spec.whatwg.org/#the-details-element)
139 # [Can I Use?](https://caniuse.com/details)
1401 register_element def details(**attributes, &content) = nil
141
142 # Outputs a `<dfn>` tag.
143 #
144 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/dfn)
145 # [Spec](https://html.spec.whatwg.org/#the-dfn-element)
1461 register_element def dfn(**attributes, &content) = nil
147
148 # Outputs a `<dialog>` tag.
149 #
150 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/dialog)
151 # [Spec](https://html.spec.whatwg.org/#the-dialog-element)
152 # [Can I use?](https://caniuse.com/dialog)
1531 register_element def dialog(**attributes, &content) = nil
154
155 # Outputs a `<div>` tag.
156 #
157 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/div)
158 # [Spec](https://html.spec.whatwg.org/#the-div-element)
1591 register_element def div(**attributes, &content) = nil
160
161 # Outputs a `<dl>` tag.
162 #
163 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/dl)
164 # [Spec](https://html.spec.whatwg.org/#the-dl-element)
1651 register_element def dl(**attributes, &content) = nil
166
167 # Outputs a `<dt>` tag.
168 #
169 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/dt)
170 # [Spec](https://html.spec.whatwg.org/#the-dt-element)
1711 register_element def dt(**attributes, &content) = nil
172
173 # Outputs an `<em>` tag.
174 #
175 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/em)
176 # [Spec](https://html.spec.whatwg.org/#the-em-element)
1771 register_element def em(**attributes, &content) = nil
178
179 # [EXPERIMENTAL] Outputs a `<fencedframe>` tag.
180 #
181 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/fencedframe)
182 # [Can I Use?](https://caniuse.com/mdn-html_elements_fencedframe)
1831 register_element def fencedframe(**attributes, &content) = nil
184
185 # Outputs a `<fieldset>` tag.
186 #
187 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/fieldset)
188 # [Spec](https://html.spec.whatwg.org/#the-fieldset-element)
1891 register_element def fieldset(**attributes, &content) = nil
190
191 # Outputs a `<figcaption>` tag.
192 #
193 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/figcaption)
194 # [Spec](https://html.spec.whatwg.org/#the-figcaption-element)
1951 register_element def figcaption(**attributes, &content) = nil
196
197 # Outputs a `<figure>` tag.
198 #
199 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/figure)
200 # [Spec](https://html.spec.whatwg.org/#the-figure-element)
2011 register_element def figure(**attributes, &content) = nil
202
203 # Outputs a `<footer>` tag.
204 #
205 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/footer)
206 # [Spec](https://html.spec.whatwg.org/#the-footer-element)
2071 register_element def footer(**attributes, &content) = nil
208
209 # Outputs a `<form>` tag.
210 #
211 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/form)
212 # [Spec](https://html.spec.whatwg.org/#the-form-element)
2131 register_element def form(**attributes, &content) = nil
214
215 # Outputs an `<h1>` tag.
216 #
217 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/h1)
218 # [Spec](https://html.spec.whatwg.org/#the-h1-element)
2191 register_element def h1(**attributes, &content) = nil
220
221 # Outputs an `<h2>` tag.
222 #
223 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/h2)
224 # [Spec](https://html.spec.whatwg.org/#the-h2-element)
2251 register_element def h2(**attributes, &content) = nil
226
227 # Outputs an `<h3>` tag.
228 #
229 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/h3)
230 # [Spec](https://html.spec.whatwg.org/#the-h3-element)
2311 register_element def h3(**attributes, &content) = nil
232
233 # Outputs an `<h4>` tag.
234 #
235 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/h4)
236 # [Spec](https://html.spec.whatwg.org/#the-h4-element)
2371 register_element def h4(**attributes, &content) = nil
238
239 # Outputs an `<h5>` tag.
240 #
241 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/h5)
242 # [Spec](https://html.spec.whatwg.org/#the-h5-element)
2431 register_element def h5(**attributes, &content) = nil
244
245 # Outputs an `<h6>` tag.
246 #
247 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/h6)
248 # [Spec](https://html.spec.whatwg.org/#the-h6-element)
2491 register_element def h6(**attributes, &content) = nil
250
251 # Outputs a `<head>` tag.
252 #
253 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/head)
254 # [Spec](https://html.spec.whatwg.org/#the-head-element)
2551 register_element def head(**attributes, &content) = nil
256
257 # Outputs a `<header>` tag.
258 #
259 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/header)
260 # [Spec](https://html.spec.whatwg.org/#the-header-element)
2611 register_element def header(**attributes, &content) = nil
262
263 # Outputs an `<hgroup>` tag.
264 #
265 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/hgroup)
266 # [Spec](https://html.spec.whatwg.org/#the-hgroup-element)
2671 register_element def hgroup(**attributes, &content) = nil
268
269 # Outputs an `<html>` tag.
270 #
271 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/html)
272 # [Spec](https://html.spec.whatwg.org/#the-html-element)
2731 register_element def html(**attributes, &content) = nil
274
275 # Outputs an `<i>` tag.
276 #
277 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/i)
278 # [Spec](https://html.spec.whatwg.org/#the-i-element)
2791 register_element def i(**attributes, &content) = nil
280
281 # Outputs an `<iframe>` tag.
282 #
283 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/iframe)
284 # [Spec](https://html.spec.whatwg.org/#the-iframe-element)
2851 register_element def iframe(**attributes, &content) = nil
286
287 # Outputs an `<ins>` tag.
288 #
289 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/ins)
290 # [Spec](https://html.spec.whatwg.org/#the-ins-element)
2911 register_element def ins(**attributes, &content) = nil
292
293 # Outputs a `<kbd>` tag.
294 #
295 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/kbd)
296 # [Spec](https://html.spec.whatwg.org/#the-kbd-element)
2971 register_element def kbd(**attributes, &content) = nil
298
299 # Outputs a `<label>` tag.
300 #
301 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/label)
302 # [Spec](https://html.spec.whatwg.org/#the-label-element)
3031 register_element def label(**attributes, &content) = nil
304
305 # Outputs a `<legend>` tag.
306 #
307 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/legend)
308 # [Spec](https://html.spec.whatwg.org/#the-legend-element)
3091 register_element def legend(**attributes, &content) = nil
310
311 # Outputs a `<li>` tag.
312 #
313 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/li)
314 # [Spec](https://html.spec.whatwg.org/#the-li-element)
3151 register_element def li(**attributes, &content) = nil
316
317 # Outputs a `<main>` tag.
318 #
319 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/main)
320 # [Spec](https://html.spec.whatwg.org/#the-main-element)
3211 register_element def main(**attributes, &content) = nil
322
323 # Outputs a `<map>` tag.
324 #
325 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/map)
326 # [Spec](https://html.spec.whatwg.org/#the-map-element)
3271 register_element def map(**attributes, &content) = nil
328
329 # Outputs a `<mark>` tag.
330 #
331 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/mark)
332 # [Spec](https://html.spec.whatwg.org/#the-mark-element)
3331 register_element def mark(**attributes, &content) = nil
334
335 # Outputs a `<menu>` tag.
336 #
337 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/menu)
338 # [Spec](https://html.spec.whatwg.org/#the-menu-element)
3391 register_element def menu(**attributes, &content) = nil
340
341 # Outputs a `<meter>` tag.
342 #
343 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/meter)
344 # [Spec](https://html.spec.whatwg.org/#the-meter-element)
3451 register_element def meter(**attributes, &content) = nil
346
347 # Outputs a `<nav>` tag.
348 #
349 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/nav)
350 # [Spec](https://html.spec.whatwg.org/#the-nav-element)
3511 register_element def nav(**attributes, &content) = nil
352
353 # Outputs a `<noscript>` tag.
354 #
355 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/noscript)
356 # [Spec](https://html.spec.whatwg.org/#the-noscript-element)
3571 register_element def noscript(**attributes, &content) = nil
358
359 # Outputs an `<object>` tag.
360 #
361 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/object)
362 # [Spec](https://html.spec.whatwg.org/#the-object-element)
3631 register_element def object(**attributes, &content) = nil
364
365 # Outputs an `<ol>` tag.
366 #
367 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/ol)
368 # [Spec](https://html.spec.whatwg.org/#the-ol-element)
3691 register_element def ol(**attributes, &content) = nil
370
371 # Outputs an `<optgroup>` tag.
372 #
373 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/optgroup)
374 # [Spec](https://html.spec.whatwg.org/#the-optgroup-element)
3751 register_element def optgroup(**attributes, &content) = nil
376
377 # Outputs an `<option>` tag.
378 #
379 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/option)
380 # [Spec](https://html.spec.whatwg.org/#the-option-element)
3811 register_element def option(**attributes, &content) = nil
382
383 # Outputs an `<output>` tag.
384 #
385 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/output)
386 # [Spec](https://html.spec.whatwg.org/#the-output-element)
3871 register_element def output(**attributes, &content) = nil
388
389 # Outputs a `<p>` tag.
390 #
391 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/p)
392 # [Spec](https://html.spec.whatwg.org/#the-p-element)
3931 register_element def p(**attributes, &content) = nil
394
395 # Outputs a `<picture>` tag.
396 #
397 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/picture)
398 # [Spec](https://html.spec.whatwg.org/#the-picture-element)
399 # [Can I Use?](https://caniuse.com/picture)
4001 register_element def picture(**attributes, &content) = nil
401
402 # Outputs a `<pre>` tag.
403 #
404 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/pre)
405 # [Spec](https://html.spec.whatwg.org/#the-pre-element)
4061 register_element def pre(**attributes, &content) = nil
407
408 # Outputs a `<progress>` tag.
409 #
410 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/progress)
411 # [Spec](https://html.spec.whatwg.org/#the-progress-element)
4121 register_element def progress(**attributes, &content) = nil
413
414 # Outputs a `<q>` tag.
415 #
416 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/q)
417 # [Spec](https://html.spec.whatwg.org/#the-q-element)
4181 register_element def q(**attributes, &content) = nil
419
420 # Outputs an `<rp>` tag.
421 #
422 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/rp)
423 # [Spec](https://html.spec.whatwg.org/#the-rp-element)
4241 register_element def rp(**attributes, &content) = nil
425
426 # Outputs an `<rt>` tag.
427 #
428 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/rt)
429 # [Spec](https://html.spec.whatwg.org/#the-rt-element)
4301 register_element def rt(**attributes, &content) = nil
431
432 # Outputs a `<ruby>` tag. (The best tag ever!)
433 #
434 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/ruby)
435 # [Spec](https://html.spec.whatwg.org/#the-ruby-element)
4361 register_element def ruby(**attributes, &content) = nil
437
438 # Outputs an `<s>` tag.
439 #
440 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/s)
441 # [Spec](https://html.spec.whatwg.org/#the-s-element)
4421 register_element def s(**attributes, &content) = nil
443
444 # Outputs a `<samp>` tag.
445 #
446 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/samp)
447 # [Spec](https://html.spec.whatwg.org/#the-samp-element)
4481 register_element def samp(**attributes, &content) = nil
449
450 # Outputs a `<script>` tag.
451 #
452 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/script)
453 # [Spec](https://html.spec.whatwg.org/#the-script-element)
4541 register_element def script(**attributes, &content) = nil
455
456 # Outputs a `<search>` tag.
457 #
458 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/search)
459 # [Spec](https://html.spec.whatwg.org/#the-search-element)
460 # [Can I Use?](https://caniuse.com/mdn-html_elements_search)
4611 register_element def search(**attributes, &content) = nil
462
463 # Outputs a `<section>` tag.
464 #
465 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/section)
466 # [Spec](https://html.spec.whatwg.org/#the-section-element)
4671 register_element def section(**attributes, &content) = nil
468
469 # Outputs a `<select>` tag.
470 #
471 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/select)
472 # [Spec](https://html.spec.whatwg.org/#the-select-element)
4731 register_element def select(**attributes, &content) = nil
474
475 # [EXPERIMENTAL] Outputs a `<selectedcontent>` tag.
476 #
477 # [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/selectedcontent)
478 # [Draft Spec](https://github.com/whatwg/html/pull/10633)
479 # [Can I Use?](https://caniuse.com/mdn-html_elements_selectedcontent)
4801 register_element def selectedcontent(**attributes, &content) = nil
481
482 # Outputs a `<slot>` tag.
483 #
484 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/slot)
485 # [Spec](https://html.spec.whatwg.org/#the-slot-element)
4861 register_element def slot(**attributes, &content) = nil
487
488 # Outputs a `<small>` tag.
489 #
490 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/small)
491 # [Spec](https://html.spec.whatwg.org/#the-small-element)
4921 register_element def small(**attributes, &content) = nil
493
494 # Outputs a `<span>` tag.
495 #
496 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/span)
497 # [Spec](https://html.spec.whatwg.org/#the-span-element)
4981 register_element def span(**attributes, &content) = nil
499
500 # Outputs a `<strong>` tag.
501 #
502 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/strong)
503 # [Spec](https://html.spec.whatwg.org/#the-strong-element)
5041 register_element def strong(**attributes, &content) = nil
505
506 # Outputs a `<style>` tag.
507 #
508 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/style)
509 # [Spec](https://html.spec.whatwg.org/#the-style-element)
5101 register_element def style(**attributes, &content) = nil
511
512 # Outputs a `<sub>` tag.
513 #
514 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/sub)
515 # [Spec](https://html.spec.whatwg.org/#the-sub-element)
5161 register_element def sub(**attributes, &content) = nil
517
518 # Outputs a `<summary>` tag.
519 #
520 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/summary)
521 # [Spec](https://html.spec.whatwg.org/#the-summary-element)
522 # [Can I Use?](https://caniuse.com/details)
5231 register_element def summary(**attributes, &content) = nil
524
525 # Outputs a `<sup>` tag.
526 #
527 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/sup)
528 # [Spec](https://html.spec.whatwg.org/#the-sup-element)
5291 register_element def sup(**attributes, &content) = nil
530
531 # Outputs an `<svg>` tag.
532 #
533 # [MDN Docs](https://developer.mozilla.org/docs/Web/SVG/Element/svg)
534 # [Spec](https://html.spec.whatwg.org/#the-svg-element)
5351 register_element def svg(**attributes, &content) = nil
536
537 # Outputs a `<table>` tag.
538 #
539 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/table)
540 # [Spec](https://html.spec.whatwg.org/#the-table-element)
5411 register_element def table(**attributes, &content) = nil
542
543 # Outputs a `<tbody>` tag.
544 #
545 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/tbody)
546 # [Spec](https://html.spec.whatwg.org/#the-tbody-element)
5471 register_element def tbody(**attributes, &content) = nil
548
549 # Outputs a `<td>` tag.
550 #
551 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/td)
552 # [Spec](https://html.spec.whatwg.org/#the-td-element)
5531 register_element def td(**attributes, &content) = nil
554
555 # Outputs a `<template>` tag.
556 #
557 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/template)
558 # [Spec](https://html.spec.whatwg.org/#the-template-element)
5591 register_element def template(**attributes, &content) = nil
560
561 # Outputs a `<textarea>` tag.
562 #
563 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/textarea)
564 # [Spec](https://html.spec.whatwg.org/#the-textarea-element)
5651 register_element def textarea(**attributes, &content) = nil
566
567 # Outputs a `<tfoot>` tag.
568 #
569 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/tfoot)
570 # [Spec](https://html.spec.whatwg.org/#the-tfoot-element)
5711 register_element def tfoot(**attributes, &content) = nil
572
573 # Outputs a `<th>` tag.
574 #
575 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/th)
576 # [Spec](https://html.spec.whatwg.org/#the-th-element)
5771 register_element def th(**attributes, &content) = nil
578
579 # Outputs a `<thead>` tag.
580 #
581 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/thead)
582 # [Spec](https://html.spec.whatwg.org/#the-thead-element)
5831 register_element def thead(**attributes, &content) = nil
584
585 # Outputs a `<time>` tag.
586 #
587 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/time)
588 # [Spec](https://html.spec.whatwg.org/#the-time-element)
5891 register_element def time(**attributes, &content) = nil
590
591 # Outputs a `<title>` tag.
592 #
593 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/title)
594 # [Spec](https://html.spec.whatwg.org/#the-title-element)
5951 register_element def title(**attributes, &content) = nil
596
597 # Outputs a `<tr>` tag.
598 #
599 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/tr)
600 # [Spec](https://html.spec.whatwg.org/#the-tr-element)
6011 register_element def tr(**attributes, &content) = nil
602
603 # Outputs a `<u>` tag.
604 #
605 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/u)
606 # [Spec](https://html.spec.whatwg.org/#the-u-element)
6071 register_element def u(**attributes, &content) = nil
608
609 # Outputs a `<ul>` tag.
610 #
611 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/ul)
612 # [Spec](https://html.spec.whatwg.org/#the-ul-element)
6131 register_element def ul(**attributes, &content) = nil
614
615 # Outputs a `<var>` tag.
616 #
617 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/var)
618 # [Spec](https://html.spec.whatwg.org/#the-var-element)
6191 register_element def var(**attributes, &content) = nil
620
621 # Outputs a `<video>` tag.
622 #
623 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/video)
624 # [Spec](https://html.spec.whatwg.org/#the-video-element)
625 # [Can I Use?](https://caniuse.com/video)
6261 register_element def video(**attributes, &content) = nil
627
628 # Outputs a `<wbr>` tag.
629 #
630 # [MDN Docs](https://developer.mozilla.org/docs/Web/HTML/Element/wbr)
631 # [Spec](https://html.spec.whatwg.org/#the-wbr-element)
6321 register_element def wbr(**attributes, &content) = nil
633end