html-element-registry 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,1157 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ getAllCategories: () => getAllCategories,
24
+ getAllTypes: () => getAllTypes,
25
+ getElement: () => getElement,
26
+ getElementsByCategory: () => getElementsByCategory,
27
+ getElementsByType: () => getElementsByType,
28
+ getVoidElements: () => getVoidElements,
29
+ isBlock: () => isBlock,
30
+ isElementType: () => isElementType,
31
+ isForm: () => isForm,
32
+ isInline: () => isInline,
33
+ isMeta: () => isMeta,
34
+ isMultimedia: () => isMultimedia,
35
+ isScript: () => isScript,
36
+ isTable: () => isTable,
37
+ isVoid: () => isVoid
38
+ });
39
+ module.exports = __toCommonJS(index_exports);
40
+
41
+ // src/data/elements.json
42
+ var elements_default = {
43
+ html: {
44
+ tag: "html",
45
+ description: "Represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.",
46
+ type: "root",
47
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/html",
48
+ category: "Main root",
49
+ isVoid: false
50
+ },
51
+ base: {
52
+ tag: "base",
53
+ description: "Specifies the base URL to use for all relative URLs in a document. There can be only one such element in a document.",
54
+ type: "meta",
55
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/base",
56
+ category: "Document metadata",
57
+ isVoid: true
58
+ },
59
+ head: {
60
+ tag: "head",
61
+ description: "Contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets.",
62
+ type: "meta",
63
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/head",
64
+ category: "Document metadata",
65
+ isVoid: false
66
+ },
67
+ link: {
68
+ tag: "link",
69
+ description: 'Specifies relationships between the current document and an external resource. This element is most commonly used to link to CSS but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.',
70
+ type: "meta",
71
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link",
72
+ category: "Document metadata",
73
+ isVoid: true
74
+ },
75
+ meta: {
76
+ tag: "meta",
77
+ description: "Represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> and <title>.",
78
+ type: "meta",
79
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta",
80
+ category: "Document metadata",
81
+ isVoid: true
82
+ },
83
+ style: {
84
+ tag: "style",
85
+ description: "Contains style information for a document or part of a document. It contains CSS, which is applied to the contents of the document containing this element.",
86
+ type: "meta",
87
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/style",
88
+ category: "Document metadata",
89
+ isVoid: false
90
+ },
91
+ title: {
92
+ tag: "title",
93
+ description: "Defines the document's title that is shown in a browser's title bar or a page's tab. It only contains text; HTML tags within the element, if any, are also treated as plain text.",
94
+ type: "meta",
95
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/title",
96
+ category: "Document metadata",
97
+ isVoid: false
98
+ },
99
+ body: {
100
+ tag: "body",
101
+ description: "Represents the content of an HTML document. There can be only one such element in a document.",
102
+ type: "body",
103
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/body",
104
+ category: "Sectioning root",
105
+ isVoid: false
106
+ },
107
+ address: {
108
+ tag: "address",
109
+ description: "Indicates that the enclosed HTML provides contact information for a person or people, or for an organization.",
110
+ type: "block",
111
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/address",
112
+ category: "Content sectioning",
113
+ isVoid: false
114
+ },
115
+ article: {
116
+ tag: "article",
117
+ description: "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). Examples include a forum post, a magazine or newspaper article, a blog entry, a product card, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.",
118
+ type: "block",
119
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/article",
120
+ category: "Content sectioning",
121
+ isVoid: false
122
+ },
123
+ aside: {
124
+ tag: "aside",
125
+ description: "Represents a portion of a document whose content is only indirectly related to the document's main content. Asides are frequently presented as sidebars or call-out boxes.",
126
+ type: "block",
127
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/aside",
128
+ category: "Content sectioning",
129
+ isVoid: false
130
+ },
131
+ footer: {
132
+ tag: "footer",
133
+ description: "Represents a footer for its nearest ancestor sectioning content or sectioning root element. A <footer> typically contains information about the author of the section, copyright data, or links to related documents.",
134
+ type: "block",
135
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/footer",
136
+ category: "Content sectioning",
137
+ isVoid: false
138
+ },
139
+ header: {
140
+ tag: "header",
141
+ description: "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.",
142
+ type: "block",
143
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/header",
144
+ category: "Content sectioning",
145
+ isVoid: false
146
+ },
147
+ h1: {
148
+ tag: "h1",
149
+ description: "Represent six levels of section headings. <h1> is the highest section level and <h6> is the lowest.",
150
+ type: "block",
151
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements",
152
+ category: "Content sectioning",
153
+ isVoid: false
154
+ },
155
+ hgroup: {
156
+ tag: "hgroup",
157
+ description: "Represents a heading grouped with any secondary content, such as subheadings, an alternative title, or a tagline.",
158
+ type: "block",
159
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/hgroup",
160
+ category: "Content sectioning",
161
+ isVoid: false
162
+ },
163
+ main: {
164
+ tag: "main",
165
+ description: "Represents the dominant content of the body of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.",
166
+ type: "block",
167
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/main",
168
+ category: "Content sectioning",
169
+ isVoid: false
170
+ },
171
+ nav: {
172
+ tag: "nav",
173
+ description: "Represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.",
174
+ type: "block",
175
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/nav",
176
+ category: "Content sectioning",
177
+ isVoid: false
178
+ },
179
+ section: {
180
+ tag: "section",
181
+ description: "Represents a generic standalone section of a document, which doesn't have a more specific semantic element to represent it. Sections should always have a heading, with very few exceptions.",
182
+ type: "block",
183
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/section",
184
+ category: "Content sectioning",
185
+ isVoid: false
186
+ },
187
+ search: {
188
+ tag: "search",
189
+ description: "Represents a part that contains a set of form controls or other content related to performing a search or filtering operation.",
190
+ type: "block",
191
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/search",
192
+ category: "Content sectioning",
193
+ isVoid: false
194
+ },
195
+ blockquote: {
196
+ tag: "blockquote",
197
+ description: "Indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation. 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 <cite> element.",
198
+ type: "block",
199
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/blockquote",
200
+ category: "Text content",
201
+ isVoid: false
202
+ },
203
+ dd: {
204
+ tag: "dd",
205
+ description: "Provides the description, definition, or value for the preceding term (<dt>) in a description list (<dl>).",
206
+ type: "block",
207
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dd",
208
+ category: "Text content",
209
+ isVoid: false
210
+ },
211
+ div: {
212
+ tag: "div",
213
+ description: "The generic container for flow content. It has no effect on the content or layout until styled in some way using CSS (e.g., styling is directly applied to it, or some kind of layout model like flexbox is applied to its parent element).",
214
+ type: "block",
215
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/div",
216
+ category: "Text content",
217
+ isVoid: false
218
+ },
219
+ dl: {
220
+ tag: "dl",
221
+ description: "Represents a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).",
222
+ type: "block",
223
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dl",
224
+ category: "Text content",
225
+ isVoid: false
226
+ },
227
+ dt: {
228
+ tag: "dt",
229
+ description: "Specifies a term in a description or definition list, and as such must be used inside a <dl> element. It is usually followed by a <dd> element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next <dd> element.",
230
+ type: "block",
231
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dt",
232
+ category: "Text content",
233
+ isVoid: false
234
+ },
235
+ figcaption: {
236
+ tag: "figcaption",
237
+ description: "Represents a caption or legend describing the rest of the contents of its parent <figure> element.",
238
+ type: "block",
239
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figcaption",
240
+ category: "Text content",
241
+ isVoid: false
242
+ },
243
+ figure: {
244
+ tag: "figure",
245
+ description: "Represents self-contained content, potentially with an optional caption, which is specified using the <figcaption> element. The figure, its caption, and its contents are referenced as a single unit.",
246
+ type: "block",
247
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figure",
248
+ category: "Text content",
249
+ isVoid: false
250
+ },
251
+ hr: {
252
+ tag: "hr",
253
+ description: "Represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.",
254
+ type: "block",
255
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/hr",
256
+ category: "Text content",
257
+ isVoid: true
258
+ },
259
+ li: {
260
+ tag: "li",
261
+ description: "Represents an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.",
262
+ type: "block",
263
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/li",
264
+ category: "Text content",
265
+ isVoid: false
266
+ },
267
+ menu: {
268
+ tag: "menu",
269
+ description: "A semantic alternative to <ul>, but treated by browsers (and exposed through the accessibility tree) as no different than <ul>. It represents an unordered list of items (which are represented by <li> elements).",
270
+ type: "block",
271
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/menu",
272
+ category: "Text content",
273
+ isVoid: false
274
+ },
275
+ ol: {
276
+ tag: "ol",
277
+ description: "Represents an ordered list of items \u2014 typically rendered as a numbered list.",
278
+ type: "block",
279
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ol",
280
+ category: "Text content",
281
+ isVoid: false
282
+ },
283
+ p: {
284
+ tag: "p",
285
+ description: "Represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.",
286
+ type: "block",
287
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/p",
288
+ category: "Text content",
289
+ isVoid: false
290
+ },
291
+ pre: {
292
+ tag: "pre",
293
+ description: "Represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or monospaced, font. Whitespace inside this element is displayed as written.",
294
+ type: "block",
295
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/pre",
296
+ category: "Text content",
297
+ isVoid: false
298
+ },
299
+ ul: {
300
+ tag: "ul",
301
+ description: "Represents an unordered list of items, typically rendered as a bulleted list.",
302
+ type: "block",
303
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ul",
304
+ category: "Text content",
305
+ isVoid: false
306
+ },
307
+ a: {
308
+ tag: "a",
309
+ description: "Together with its href attribute, creates a hyperlink to web pages, files, email addresses, locations within the current page, or anything else a URL can address.",
310
+ type: "inline",
311
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a",
312
+ category: "Inline text semantics",
313
+ isVoid: false
314
+ },
315
+ abbr: {
316
+ tag: "abbr",
317
+ description: "Represents an abbreviation or acronym.",
318
+ type: "inline",
319
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/abbr",
320
+ category: "Inline text semantics",
321
+ isVoid: false
322
+ },
323
+ b: {
324
+ tag: "b",
325
+ description: "Used to draw the reader's attention to the element's contents, which are not otherwise granted special importance. This was formerly known as the Boldface element, and most browsers still draw the text in boldface. However, you should not use <b> for styling text or granting importance. If you wish to create boldface text, you should use the CSS font-weight property. If you wish to indicate an element is of special importance, you should use the <strong> element.",
326
+ type: "inline",
327
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/b",
328
+ category: "Inline text semantics",
329
+ isVoid: false
330
+ },
331
+ bdi: {
332
+ tag: "bdi",
333
+ description: "Tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text. It's particularly useful when a website dynamically inserts some text and doesn't know the directionality of the text being inserted.",
334
+ type: "inline",
335
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/bdi",
336
+ category: "Inline text semantics",
337
+ isVoid: false
338
+ },
339
+ bdo: {
340
+ tag: "bdo",
341
+ description: "Overrides the current directionality of text, so that the text within is rendered in a different direction.",
342
+ type: "inline",
343
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/bdo",
344
+ category: "Inline text semantics",
345
+ isVoid: false
346
+ },
347
+ br: {
348
+ tag: "br",
349
+ description: "Produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.",
350
+ type: "inline",
351
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/br",
352
+ category: "Inline text semantics",
353
+ isVoid: true
354
+ },
355
+ cite: {
356
+ tag: "cite",
357
+ description: "Used to mark up the title of a creative work. The reference may be in an abbreviated form according to context-appropriate conventions related to citation metadata.",
358
+ type: "inline",
359
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/cite",
360
+ category: "Inline text semantics",
361
+ isVoid: false
362
+ },
363
+ code: {
364
+ tag: "code",
365
+ description: "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.",
366
+ type: "inline",
367
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/code",
368
+ category: "Inline text semantics",
369
+ isVoid: false
370
+ },
371
+ data: {
372
+ tag: "data",
373
+ description: "Links a given piece of content with a machine-readable translation. If the content is time- or date-related, the <time> element must be used.",
374
+ type: "inline",
375
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/data",
376
+ category: "Inline text semantics",
377
+ isVoid: false
378
+ },
379
+ dfn: {
380
+ tag: "dfn",
381
+ description: "Used to indicate the term being defined within the context of a definition phrase or sentence. The ancestor <p> element, the <dt>/<dd> pairing, or the nearest section ancestor of the <dfn> element, is considered to be the definition of the term.",
382
+ type: "inline",
383
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dfn",
384
+ category: "Inline text semantics",
385
+ isVoid: false
386
+ },
387
+ em: {
388
+ tag: "em",
389
+ description: "Marks text that has stress emphasis. The <em> element can be nested, with each nesting level indicating a greater degree of emphasis.",
390
+ type: "inline",
391
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/em",
392
+ category: "Inline text semantics",
393
+ isVoid: false
394
+ },
395
+ i: {
396
+ tag: "i",
397
+ description: "Represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, and taxonomical designations, among others. Historically, these have been presented using italicized type, which is the original source of the <i> naming of this element.",
398
+ type: "inline",
399
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/i",
400
+ category: "Inline text semantics",
401
+ isVoid: false
402
+ },
403
+ kbd: {
404
+ tag: "kbd",
405
+ description: "Represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device. By convention, the user agent defaults to rendering the contents of a <kbd> element using its default monospace font, although this is not mandated by the HTML standard.",
406
+ type: "inline",
407
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/kbd",
408
+ category: "Inline text semantics",
409
+ isVoid: false
410
+ },
411
+ mark: {
412
+ tag: "mark",
413
+ description: "Represents text which is marked or highlighted for reference or notation purposes due to the marked passage's relevance in the enclosing context.",
414
+ type: "inline",
415
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/mark",
416
+ category: "Inline text semantics",
417
+ isVoid: false
418
+ },
419
+ q: {
420
+ tag: "q",
421
+ description: "Indicates that the enclosed text is a short inline quotation. Most modern browsers implement this by surrounding the text in quotation marks. This element is intended for short quotations that don't require paragraph breaks; for long quotations use the <blockquote> element.",
422
+ type: "inline",
423
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/q",
424
+ category: "Inline text semantics",
425
+ isVoid: false
426
+ },
427
+ rp: {
428
+ tag: "rp",
429
+ description: "Used to provide fall-back parentheses for browsers that do not support the display of ruby annotations using the <ruby> element. One <rp> element should enclose each of the opening and closing parentheses that wrap the <rt> element that contains the annotation's text.",
430
+ type: "inline",
431
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rp",
432
+ category: "Inline text semantics",
433
+ isVoid: false
434
+ },
435
+ rt: {
436
+ tag: "rt",
437
+ description: "Specifies the ruby text component of a ruby annotation, which is used to provide pronunciation, translation, or transliteration information for East Asian typography. The <rt> element must always be contained within a <ruby> element.",
438
+ type: "inline",
439
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rt",
440
+ category: "Inline text semantics",
441
+ isVoid: false
442
+ },
443
+ ruby: {
444
+ tag: "ruby",
445
+ description: "Represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters. It can also be used for annotating other kinds of text, but this usage is less common.",
446
+ type: "inline",
447
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ruby",
448
+ category: "Inline text semantics",
449
+ isVoid: false
450
+ },
451
+ s: {
452
+ tag: "s",
453
+ description: "Renders text with a strikethrough, or a line through it. Use the <s> element to represent things that are no longer relevant or no longer accurate. However, <s> is not appropriate when indicating document edits; for that, use the <del> and <ins> elements, as appropriate.",
454
+ type: "inline",
455
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/s",
456
+ category: "Inline text semantics",
457
+ isVoid: false
458
+ },
459
+ samp: {
460
+ tag: "samp",
461
+ description: "Used to enclose inline text which represents sample (or quoted) output from a computer program. Its contents are typically rendered using the browser's default monospaced font (such as Courier or Lucida Console).",
462
+ type: "inline",
463
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/samp",
464
+ category: "Inline text semantics",
465
+ isVoid: false
466
+ },
467
+ small: {
468
+ tag: "small",
469
+ description: "Represents side-comments and small print, like copyright and legal text, independent of its styled presentation. By default, it renders text within it one font size smaller, such as from small to x-small.",
470
+ type: "inline",
471
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/small",
472
+ category: "Inline text semantics",
473
+ isVoid: false
474
+ },
475
+ span: {
476
+ tag: "span",
477
+ description: "A generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. It should be used only when no other semantic element is appropriate. <span> is very much like a div element, but div is a block-level element whereas a <span> is an inline-level element.",
478
+ type: "inline",
479
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/span",
480
+ category: "Inline text semantics",
481
+ isVoid: false
482
+ },
483
+ strong: {
484
+ tag: "strong",
485
+ description: "Indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.",
486
+ type: "inline",
487
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/strong",
488
+ category: "Inline text semantics",
489
+ isVoid: false
490
+ },
491
+ sub: {
492
+ tag: "sub",
493
+ description: "Specifies inline text which should be displayed as subscript for solely typographical reasons. Subscripts are typically rendered with a lowered baseline using smaller text.",
494
+ type: "inline",
495
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/sub",
496
+ category: "Inline text semantics",
497
+ isVoid: false
498
+ },
499
+ sup: {
500
+ tag: "sup",
501
+ description: "Specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text.",
502
+ type: "inline",
503
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/sup",
504
+ category: "Inline text semantics",
505
+ isVoid: false
506
+ },
507
+ time: {
508
+ tag: "time",
509
+ description: "Represents a specific period in time. It may include the datetime attribute to translate dates into machine-readable format, allowing for better search engine results or custom features such as reminders.",
510
+ type: "inline",
511
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/time",
512
+ category: "Inline text semantics",
513
+ isVoid: false
514
+ },
515
+ u: {
516
+ tag: "u",
517
+ description: "Represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation. This is rendered by default as a single solid underline but may be altered using CSS.",
518
+ type: "inline",
519
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/u",
520
+ category: "Inline text semantics",
521
+ isVoid: false
522
+ },
523
+ var: {
524
+ tag: "var",
525
+ description: "Represents the name of a variable in a mathematical expression or a programming context. It's typically presented using an italicized version of the current typeface, although that behavior is browser-dependent.",
526
+ type: "inline",
527
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/var",
528
+ category: "Inline text semantics",
529
+ isVoid: false
530
+ },
531
+ wbr: {
532
+ tag: "wbr",
533
+ description: "Represents a word break opportunity\u2014a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.",
534
+ type: "inline",
535
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/wbr",
536
+ category: "Inline text semantics",
537
+ isVoid: true
538
+ },
539
+ area: {
540
+ tag: "area",
541
+ description: "Defines an area inside an image map that has predefined clickable areas. An image map allows geometric areas on an image to be associated with hyperlink.",
542
+ type: "multimedia",
543
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/area",
544
+ category: "Image and multimedia",
545
+ isVoid: true
546
+ },
547
+ audio: {
548
+ tag: "audio",
549
+ description: "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.",
550
+ type: "multimedia",
551
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/audio",
552
+ category: "Image and multimedia",
553
+ isVoid: false
554
+ },
555
+ img: {
556
+ tag: "img",
557
+ description: "Embeds an image into the document.",
558
+ type: "multimedia",
559
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img",
560
+ category: "Image and multimedia",
561
+ isVoid: true
562
+ },
563
+ map: {
564
+ tag: "map",
565
+ description: "Used with <area> elements to define an image map (a clickable link area).",
566
+ type: "multimedia",
567
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/map",
568
+ category: "Image and multimedia",
569
+ isVoid: false
570
+ },
571
+ track: {
572
+ tag: "track",
573
+ description: "Used as a child of the media elements, audio and video. It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files)\u2014Web Video Text Tracks.",
574
+ type: "multimedia",
575
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/track",
576
+ category: "Image and multimedia",
577
+ isVoid: true
578
+ },
579
+ video: {
580
+ tag: "video",
581
+ description: "Embeds a media player which supports video playback into the document. You can also use <video> for audio content, but the audio element may provide a more appropriate user experience.",
582
+ type: "multimedia",
583
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video",
584
+ category: "Image and multimedia",
585
+ isVoid: false
586
+ },
587
+ embed: {
588
+ tag: "embed",
589
+ description: "Embeds external content at the specified point in the document. This content is provided by an external application or other source of interactive content such as a browser plug-in.",
590
+ type: "block",
591
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/embed",
592
+ category: "Embedded content",
593
+ isVoid: true
594
+ },
595
+ fencedframe: {
596
+ tag: "fencedframe",
597
+ description: "Represents a nested browsing context, like <iframe> but with more native privacy features built in.",
598
+ type: "block",
599
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/fencedframe",
600
+ category: "Embedded content",
601
+ isVoid: false
602
+ },
603
+ iframe: {
604
+ tag: "iframe",
605
+ description: "Represents a nested browsing context, embedding another HTML page into the current one.",
606
+ type: "block",
607
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe",
608
+ category: "Embedded content",
609
+ isVoid: false
610
+ },
611
+ object: {
612
+ tag: "object",
613
+ description: "Represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.",
614
+ type: "block",
615
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/object",
616
+ category: "Embedded content",
617
+ isVoid: false
618
+ },
619
+ picture: {
620
+ tag: "picture",
621
+ description: "Contains zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.",
622
+ type: "block",
623
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/picture",
624
+ category: "Embedded content",
625
+ isVoid: false
626
+ },
627
+ source: {
628
+ tag: "source",
629
+ description: "Specifies multiple media resources for the picture, the audio element, or the video element. It is a void element, meaning that it has no content and does not have a closing tag. It is commonly used to offer the same media content in multiple file formats in order to provide compatibility with a broad range of browsers given their differing support for image file formats and media file formats.",
630
+ type: "block",
631
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/source",
632
+ category: "Embedded content",
633
+ isVoid: true
634
+ },
635
+ canvas: {
636
+ tag: "canvas",
637
+ description: "Container element to use with either the canvas scripting API or the WebGL API to draw graphics and animations.",
638
+ type: "script",
639
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/canvas",
640
+ category: "Scripting",
641
+ isVoid: false
642
+ },
643
+ noscript: {
644
+ tag: "noscript",
645
+ description: "Defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.",
646
+ type: "script",
647
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/noscript",
648
+ category: "Scripting",
649
+ isVoid: false
650
+ },
651
+ script: {
652
+ tag: "script",
653
+ description: "Used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The <script> element can also be used with other languages, such as WebGL's GLSL shader programming language and JSON.",
654
+ type: "script",
655
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script",
656
+ category: "Scripting",
657
+ isVoid: false
658
+ },
659
+ del: {
660
+ tag: "del",
661
+ description: 'Represents a range of text that has been deleted from a document. This can be used when rendering "track changes" or source code diff information, for example. The <ins> element can be used for the opposite purpose: to indicate text that has been added to the document.',
662
+ type: "block",
663
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/del",
664
+ category: "Demarcating edits",
665
+ isVoid: false
666
+ },
667
+ ins: {
668
+ tag: "ins",
669
+ description: "Represents a range of text that has been added to a document. You can use the <del> element to similarly represent a range of text that has been deleted from the document.",
670
+ type: "block",
671
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ins",
672
+ category: "Demarcating edits",
673
+ isVoid: false
674
+ },
675
+ caption: {
676
+ tag: "caption",
677
+ description: "Specifies the caption (or title) of a table.",
678
+ type: "table",
679
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/caption",
680
+ category: "Table content",
681
+ isVoid: false
682
+ },
683
+ col: {
684
+ tag: "col",
685
+ description: "Defines one or more columns in a column group represented by its implicit or explicit parent <colgroup> element. The <col> element is only valid as a child of a <colgroup> element that has no span attribute defined.",
686
+ type: "table",
687
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/col",
688
+ category: "Table content",
689
+ isVoid: true
690
+ },
691
+ colgroup: {
692
+ tag: "colgroup",
693
+ description: "Defines a group of columns within a table.",
694
+ type: "table",
695
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/colgroup",
696
+ category: "Table content",
697
+ isVoid: false
698
+ },
699
+ table: {
700
+ tag: "table",
701
+ description: "Represents tabular data\u2014that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.",
702
+ type: "table",
703
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/table",
704
+ category: "Table content",
705
+ isVoid: false
706
+ },
707
+ tbody: {
708
+ tag: "tbody",
709
+ description: "Encapsulates a set of table rows (<tr> elements), indicating that they comprise the body of a table's (main) data.",
710
+ type: "table",
711
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tbody",
712
+ category: "Table content",
713
+ isVoid: false
714
+ },
715
+ td: {
716
+ tag: "td",
717
+ description: "A child of the <tr> element, it defines a cell of a table that contains data.",
718
+ type: "table",
719
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/td",
720
+ category: "Table content",
721
+ isVoid: false
722
+ },
723
+ tfoot: {
724
+ tag: "tfoot",
725
+ description: "Encapsulates a set of table rows (<tr> elements), indicating that they comprise the foot of a table with information about the table's columns. This is usually a summary of the columns, e.g., a sum of the given numbers in a column.",
726
+ type: "table",
727
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tfoot",
728
+ category: "Table content",
729
+ isVoid: false
730
+ },
731
+ th: {
732
+ tag: "th",
733
+ description: "A child of the <tr> element, it defines a cell as the header of a group of table cells. The nature of this group can be explicitly defined by the scope and headers attributes.",
734
+ type: "table",
735
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/th",
736
+ category: "Table content",
737
+ isVoid: false
738
+ },
739
+ thead: {
740
+ tag: "thead",
741
+ description: "Encapsulates a set of table rows (<tr> elements), indicating that they comprise the head of a table with information about the table's columns. This is usually in the form of column headers (<th> elements).",
742
+ type: "table",
743
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/thead",
744
+ category: "Table content",
745
+ isVoid: false
746
+ },
747
+ tr: {
748
+ tag: "tr",
749
+ description: "Defines a row of cells in a table. The row's cells can then be established using a mix of <td> (data cell) and <th> (header cell) elements.",
750
+ type: "table",
751
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tr",
752
+ category: "Table content",
753
+ isVoid: false
754
+ },
755
+ button: {
756
+ tag: "button",
757
+ description: "An interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it performs an action, such as submitting a form or opening a dialog.",
758
+ type: "form",
759
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button",
760
+ category: "Forms",
761
+ isVoid: false
762
+ },
763
+ datalist: {
764
+ tag: "datalist",
765
+ description: "Contains a set of <option> elements that represent the permissible or recommended options available to choose from within other controls.",
766
+ type: "form",
767
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/datalist",
768
+ category: "Forms",
769
+ isVoid: false
770
+ },
771
+ fieldset: {
772
+ tag: "fieldset",
773
+ description: "Used to group several controls as well as labels (<label>) within a web form.",
774
+ type: "form",
775
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/fieldset",
776
+ category: "Forms",
777
+ isVoid: false
778
+ },
779
+ form: {
780
+ tag: "form",
781
+ description: "Represents a document section containing interactive controls for submitting information.",
782
+ type: "form",
783
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form",
784
+ category: "Forms",
785
+ isVoid: false
786
+ },
787
+ input: {
788
+ tag: "input",
789
+ description: "Used to create interactive controls for web-based forms to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.",
790
+ type: "form",
791
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input",
792
+ category: "Forms",
793
+ isVoid: true
794
+ },
795
+ label: {
796
+ tag: "label",
797
+ description: "Represents a caption for an item in a user interface.",
798
+ type: "form",
799
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/label",
800
+ category: "Forms",
801
+ isVoid: false
802
+ },
803
+ legend: {
804
+ tag: "legend",
805
+ description: "Represents a caption for the content of its parent <fieldset>.",
806
+ type: "form",
807
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/legend",
808
+ category: "Forms",
809
+ isVoid: false
810
+ },
811
+ meter: {
812
+ tag: "meter",
813
+ description: "Represents either a scalar value within a known range or a fractional value.",
814
+ type: "form",
815
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meter",
816
+ category: "Forms",
817
+ isVoid: false
818
+ },
819
+ optgroup: {
820
+ tag: "optgroup",
821
+ description: "Creates a grouping of options within a <select> element.",
822
+ type: "form",
823
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/optgroup",
824
+ category: "Forms",
825
+ isVoid: false
826
+ },
827
+ option: {
828
+ tag: "option",
829
+ description: "Used to define an item contained in a <select>, an <optgroup>, or a <datalist> element. As such, <option> can represent menu items in popups and other lists of items in an HTML document.",
830
+ type: "form",
831
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/option",
832
+ category: "Forms",
833
+ isVoid: false
834
+ },
835
+ output: {
836
+ tag: "output",
837
+ description: "Container element into which a site or app can inject the results of a calculation or the outcome of a user action.",
838
+ type: "form",
839
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/output",
840
+ category: "Forms",
841
+ isVoid: false
842
+ },
843
+ progress: {
844
+ tag: "progress",
845
+ description: "Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.",
846
+ type: "form",
847
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/progress",
848
+ category: "Forms",
849
+ isVoid: false
850
+ },
851
+ select: {
852
+ tag: "select",
853
+ description: "Represents a control that provides a menu of options.",
854
+ type: "form",
855
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select",
856
+ category: "Forms",
857
+ isVoid: false
858
+ },
859
+ selectedcontent: {
860
+ tag: "selectedcontent",
861
+ description: "Displays the content of the currently selected <option> inside a closed <select> element.",
862
+ type: "form",
863
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/selectedcontent",
864
+ category: "Forms",
865
+ isVoid: false
866
+ },
867
+ textarea: {
868
+ tag: "textarea",
869
+ description: "Represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example, a comment on a review or feedback form.",
870
+ type: "form",
871
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea",
872
+ category: "Forms",
873
+ isVoid: false
874
+ },
875
+ details: {
876
+ tag: "details",
877
+ description: 'Creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label must be provided using the <summary> element.',
878
+ type: "block",
879
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details",
880
+ category: "Interactive elements",
881
+ isVoid: false
882
+ },
883
+ dialog: {
884
+ tag: "dialog",
885
+ description: "Represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.",
886
+ type: "block",
887
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog",
888
+ category: "Interactive elements",
889
+ isVoid: false
890
+ },
891
+ summary: {
892
+ tag: "summary",
893
+ description: "Specifies a summary, caption, or legend for a details element's disclosure box. Clicking the <summary> element toggles the state of the parent <details> element open and closed.",
894
+ type: "block",
895
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary",
896
+ category: "Interactive elements",
897
+ isVoid: false
898
+ },
899
+ slot: {
900
+ tag: "slot",
901
+ description: "Part of the Web Components technology suite, this element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.",
902
+ type: "block",
903
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/slot",
904
+ category: "Web Components",
905
+ isVoid: false
906
+ },
907
+ template: {
908
+ tag: "template",
909
+ description: "A mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.",
910
+ type: "block",
911
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/template",
912
+ category: "Web Components",
913
+ isVoid: false
914
+ },
915
+ acronym: {
916
+ tag: "acronym",
917
+ description: "Allows authors to clearly indicate a sequence of characters that compose an acronym or abbreviation for a word.",
918
+ type: "block",
919
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/acronym",
920
+ category: "Obsolete and deprecated elements",
921
+ isVoid: false
922
+ },
923
+ big: {
924
+ tag: "big",
925
+ description: "Renders the enclosed text at a font size one level larger than the surrounding text (medium becomes large, for example). The size is capped at the browser's maximum permitted font size.",
926
+ type: "block",
927
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/big",
928
+ category: "Obsolete and deprecated elements",
929
+ isVoid: false
930
+ },
931
+ center: {
932
+ tag: "center",
933
+ description: "Displays its block-level or inline contents centered horizontally within its containing element.",
934
+ type: "block",
935
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/center",
936
+ category: "Obsolete and deprecated elements",
937
+ isVoid: false
938
+ },
939
+ dir: {
940
+ tag: "dir",
941
+ description: "Container for a directory of files and/or folders, potentially with styles and icons applied by the user agent. Do not use this obsolete element; instead, you should use the <ul> element for lists, including lists of files.",
942
+ type: "block",
943
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dir",
944
+ category: "Obsolete and deprecated elements",
945
+ isVoid: false
946
+ },
947
+ font: {
948
+ tag: "font",
949
+ description: "Defines the font size, color and face for its content.",
950
+ type: "block",
951
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/font",
952
+ category: "Obsolete and deprecated elements",
953
+ isVoid: false
954
+ },
955
+ frame: {
956
+ tag: "frame",
957
+ description: "Defines a particular area in which another HTML document can be displayed. A frame should be used within a <frameset>.",
958
+ type: "block",
959
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/frame",
960
+ category: "Obsolete and deprecated elements",
961
+ isVoid: false
962
+ },
963
+ frameset: {
964
+ tag: "frameset",
965
+ description: "Used to contain <frame> elements.",
966
+ type: "block",
967
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/frameset",
968
+ category: "Obsolete and deprecated elements",
969
+ isVoid: false
970
+ },
971
+ marquee: {
972
+ tag: "marquee",
973
+ description: "Used to insert a scrolling area of text. You can control what happens when the text reaches the edges of its content area using its attributes.",
974
+ type: "block",
975
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/marquee",
976
+ category: "Obsolete and deprecated elements",
977
+ isVoid: false
978
+ },
979
+ nobr: {
980
+ tag: "nobr",
981
+ description: "Prevents the text it contains from automatically wrapping across multiple lines, potentially resulting in the user having to scroll horizontally to see the entire width of the text.",
982
+ type: "block",
983
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/nobr",
984
+ category: "Obsolete and deprecated elements",
985
+ isVoid: false
986
+ },
987
+ noembed: {
988
+ tag: "noembed",
989
+ description: 'An obsolete, non-standard way to provide alternative, or "fallback", content for browsers that do not support the embed element or do not support the type of embedded content an author wishes to use. This element was deprecated in HTML 4.01 and above in favor of placing fallback content between the opening and closing tags of an <object> element.',
990
+ type: "block",
991
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/noembed",
992
+ category: "Obsolete and deprecated elements",
993
+ isVoid: false
994
+ },
995
+ noframes: {
996
+ tag: "noframes",
997
+ description: "Provides content to be presented in browsers that don't support (or have disabled support for) the <frame> element. Although most commonly-used browsers support frames, there are exceptions, including certain special-use browsers including some mobile browsers, as well as text-mode browsers.",
998
+ type: "block",
999
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/noframes",
1000
+ category: "Obsolete and deprecated elements",
1001
+ isVoid: false
1002
+ },
1003
+ param: {
1004
+ tag: "param",
1005
+ description: "Defines parameters for an <object> element.",
1006
+ type: "block",
1007
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/param",
1008
+ category: "Obsolete and deprecated elements",
1009
+ isVoid: true
1010
+ },
1011
+ plaintext: {
1012
+ tag: "plaintext",
1013
+ description: "Renders everything following the start tag as raw text, ignoring any following HTML. There is no closing tag, since everything after it is considered raw text.",
1014
+ type: "block",
1015
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/plaintext",
1016
+ category: "Obsolete and deprecated elements",
1017
+ isVoid: false
1018
+ },
1019
+ rb: {
1020
+ tag: "rb",
1021
+ description: "Used to delimit the base text component of a ruby annotation, i.e., the text that is being annotated. One <rb> element should wrap each separate atomic segment of the base text.",
1022
+ type: "block",
1023
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rb",
1024
+ category: "Obsolete and deprecated elements",
1025
+ isVoid: false
1026
+ },
1027
+ rtc: {
1028
+ tag: "rtc",
1029
+ description: "Embraces semantic annotations of characters presented in a ruby of <rb> elements used inside of <ruby> element. <rb> elements can have both pronunciation (<rt>) and semantic (<rtc>) annotations.",
1030
+ type: "block",
1031
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rtc",
1032
+ category: "Obsolete and deprecated elements",
1033
+ isVoid: false
1034
+ },
1035
+ strike: {
1036
+ tag: "strike",
1037
+ description: "Places a strikethrough (horizontal line) over text.",
1038
+ type: "block",
1039
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/strike",
1040
+ category: "Obsolete and deprecated elements",
1041
+ isVoid: false
1042
+ },
1043
+ tt: {
1044
+ tag: "tt",
1045
+ description: "Creates inline text which is presented using the user agent default monospace font face. This element was created for the purpose of rendering text as it would be displayed on a fixed-width display such as a teletype, text-only screen, or line printer.",
1046
+ type: "block",
1047
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tt",
1048
+ category: "Obsolete and deprecated elements",
1049
+ isVoid: false
1050
+ },
1051
+ xmp: {
1052
+ tag: "xmp",
1053
+ description: "Renders text between the start and end tags without interpreting the HTML in between and using a monospaced font. The HTML2 specification recommended that it should be rendered wide enough to allow 80 characters per line.",
1054
+ type: "block",
1055
+ url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/xmp",
1056
+ category: "Obsolete and deprecated elements",
1057
+ isVoid: false
1058
+ }
1059
+ };
1060
+
1061
+ // src/index.ts
1062
+ var elementsMap = elements_default;
1063
+ function cloneElement(element) {
1064
+ return { ...element };
1065
+ }
1066
+ function getElement(tagName) {
1067
+ const element = elementsMap[tagName.toLowerCase()];
1068
+ return element ? cloneElement(element) : null;
1069
+ }
1070
+ function isElementType(tag, type) {
1071
+ return getElement(tag)?.type === type;
1072
+ }
1073
+ function isBlock(tag) {
1074
+ return getElement(tag)?.type === "block";
1075
+ }
1076
+ function isInline(tag) {
1077
+ return getElement(tag)?.type === "inline";
1078
+ }
1079
+ function isMeta(tag) {
1080
+ return getElement(tag)?.type === "meta";
1081
+ }
1082
+ function isTable(tag) {
1083
+ return getElement(tag)?.type === "table";
1084
+ }
1085
+ function isForm(tag) {
1086
+ return getElement(tag)?.type === "form";
1087
+ }
1088
+ function isMultimedia(tag) {
1089
+ return getElement(tag)?.type === "multimedia";
1090
+ }
1091
+ function isScript(tag) {
1092
+ return getElement(tag)?.type === "script";
1093
+ }
1094
+ function isVoid(tag) {
1095
+ return getElement(tag)?.isVoid ?? false;
1096
+ }
1097
+ function getElementsByCategory(category) {
1098
+ const lowerCategory = category.toLowerCase();
1099
+ const results = [];
1100
+ for (const element of Object.values(elementsMap)) {
1101
+ if (element.category.toLowerCase() === lowerCategory) {
1102
+ results.push(cloneElement(element));
1103
+ }
1104
+ }
1105
+ return results;
1106
+ }
1107
+ function getElementsByType(type) {
1108
+ const results = [];
1109
+ for (const element of Object.values(elementsMap)) {
1110
+ if (element.type === type) {
1111
+ results.push(cloneElement(element));
1112
+ }
1113
+ }
1114
+ return results;
1115
+ }
1116
+ function getVoidElements() {
1117
+ const results = [];
1118
+ for (const element of Object.values(elementsMap)) {
1119
+ if (element.isVoid) {
1120
+ results.push(cloneElement(element));
1121
+ }
1122
+ }
1123
+ return results;
1124
+ }
1125
+ function getAllCategories() {
1126
+ const categories = /* @__PURE__ */ new Set();
1127
+ for (const element of Object.values(elementsMap)) {
1128
+ categories.add(element.category);
1129
+ }
1130
+ return Array.from(categories).sort();
1131
+ }
1132
+ function getAllTypes() {
1133
+ const types = /* @__PURE__ */ new Set();
1134
+ for (const element of Object.values(elementsMap)) {
1135
+ types.add(element.type);
1136
+ }
1137
+ return Array.from(types).sort();
1138
+ }
1139
+ // Annotate the CommonJS export names for ESM import in node:
1140
+ 0 && (module.exports = {
1141
+ getAllCategories,
1142
+ getAllTypes,
1143
+ getElement,
1144
+ getElementsByCategory,
1145
+ getElementsByType,
1146
+ getVoidElements,
1147
+ isBlock,
1148
+ isElementType,
1149
+ isForm,
1150
+ isInline,
1151
+ isMeta,
1152
+ isMultimedia,
1153
+ isScript,
1154
+ isTable,
1155
+ isVoid
1156
+ });
1157
+ //# sourceMappingURL=index.cjs.map