@enjoys/context-engine 1.0.0 → 1.0.1
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/data/commands/adb.json +322 -0
- package/data/commands/alembic.json +301 -0
- package/data/commands/artisan.json +277 -0
- package/data/commands/atlas.json +426 -0
- package/data/commands/auth0.json +648 -0
- package/data/commands/bat.json +84 -0
- package/data/commands/bundle.json +321 -0
- package/data/commands/composer.json +507 -0
- package/data/commands/dart.json +216 -0
- package/data/commands/dbmate.json +257 -0
- package/data/commands/docker-compose.json +384 -0
- package/data/commands/drizzle-kit.json +217 -0
- package/data/commands/expo.json +65 -0
- package/data/commands/fastlane.json +243 -0
- package/data/commands/fd.json +86 -0
- package/data/commands/flutter.json +298 -0
- package/data/commands/flyway.json +261 -0
- package/data/commands/fzf.json +103 -0
- package/data/commands/gem.json +267 -0
- package/data/commands/jq.json +100 -0
- package/data/commands/k9s.json +62 -0
- package/data/commands/liquibase.json +399 -0
- package/data/commands/manifest.json +619 -0
- package/data/commands/minikube.json +60 -0
- package/data/commands/ng.json +64 -0
- package/data/commands/nuxt.json +60 -0
- package/data/commands/php.json +157 -0
- package/data/commands/pm2.json +259 -0
- package/data/commands/pod.json +175 -0
- package/data/commands/prisma.json +257 -0
- package/data/commands/rails.json +372 -0
- package/data/commands/rake.json +360 -0
- package/data/commands/react-native.json +57 -0
- package/data/commands/rg.json +103 -0
- package/data/commands/rspec.json +257 -0
- package/data/commands/ruby.json +108 -0
- package/data/commands/sequelize.json +342 -0
- package/data/commands/snyk.json +442 -0
- package/data/commands/sonar-scanner.json +219 -0
- package/data/commands/stripe.json +314 -0
- package/data/commands/symfony.json +449 -0
- package/data/commands/tmux.json +197 -0
- package/data/commands/trivy.json +367 -0
- package/data/commands/twilio.json +382 -0
- package/data/commands/typeorm.json +262 -0
- package/data/commands/vue.json +60 -0
- package/data/commands/wp.json +857 -0
- package/data/commands/xcodebuild.json +141 -0
- package/data/commands/yq.json +57 -0
- package/data/completion/bash.json +1184 -0
- package/data/completion/c.json +1067 -0
- package/data/completion/cpp.json +824 -0
- package/data/completion/csharp.json +860 -0
- package/data/completion/dockerfile.json +536 -0
- package/data/completion/go.json +1346 -0
- package/data/completion/html.json +806 -0
- package/data/completion/java.json +1112 -0
- package/data/completion/javascript.json +914 -0
- package/data/completion/lua.json +968 -0
- package/data/completion/php.json +1535 -0
- package/data/completion/python.json +1427 -0
- package/data/completion/ruby.json +1531 -0
- package/data/completion/rust.json +698 -0
- package/data/completion/sql.json +887 -0
- package/data/completion/toml.json +428 -0
- package/data/completion/typescript.json +338 -0
- package/data/completion/yaml.json +563 -0
- package/data/defination/bash.json +565 -0
- package/data/defination/c.json +865 -0
- package/data/defination/cpp.json +348 -0
- package/data/defination/csharp.json +144 -0
- package/data/defination/dockerfile.json +113 -0
- package/data/defination/go.json +561 -0
- package/data/defination/html.json +559 -0
- package/data/defination/java.json +184 -0
- package/data/defination/javascript.json +265 -0
- package/data/defination/lua.json +181 -0
- package/data/defination/php.json +726 -0
- package/data/defination/python.json +717 -0
- package/data/defination/ruby.json +670 -0
- package/data/defination/rust.json +207 -0
- package/data/defination/sql.json +473 -0
- package/data/defination/toml.json +251 -0
- package/data/defination/typescript.json +29 -0
- package/data/defination/yaml.json +197 -0
- package/data/hover/bash.json +245 -0
- package/data/hover/c.json +265 -0
- package/data/hover/cpp.json +210 -0
- package/data/hover/csharp.json +290 -0
- package/data/hover/dockerfile.json +145 -0
- package/data/hover/go.json +580 -0
- package/data/hover/html.json +250 -0
- package/data/hover/java.json +395 -0
- package/data/hover/javascript.json +330 -0
- package/data/hover/lua.json +265 -0
- package/data/hover/php.json +300 -0
- package/data/hover/python.json +380 -0
- package/data/hover/ruby.json +265 -0
- package/data/hover/rust.json +275 -0
- package/data/hover/sql.json +230 -0
- package/data/hover/toml.json +145 -0
- package/data/hover/typescript.json +120 -0
- package/data/hover/yaml.json +165 -0
- package/data/manifest.json +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "html",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"document": {
|
|
5
|
+
"signature": "Document Elements",
|
|
6
|
+
"description": "Elements that define the document structure and metadata.",
|
|
7
|
+
"type": "category",
|
|
8
|
+
"module": "HTML5",
|
|
9
|
+
"members": {
|
|
10
|
+
"html": {
|
|
11
|
+
"signature": "<html lang=\"en\">...</html>",
|
|
12
|
+
"description": "The root element of an HTML document. All other elements must be descendants of this element. The `lang` attribute declares the language of the page.",
|
|
13
|
+
"type": "element"
|
|
14
|
+
},
|
|
15
|
+
"head": {
|
|
16
|
+
"signature": "<head>...</head>",
|
|
17
|
+
"description": "Contains machine-readable information (metadata) about the document, such as title, scripts, and style sheets.",
|
|
18
|
+
"type": "element"
|
|
19
|
+
},
|
|
20
|
+
"body": {
|
|
21
|
+
"signature": "<body>...</body>",
|
|
22
|
+
"description": "Represents the content of an HTML document. There can be only one `<body>` element per document.",
|
|
23
|
+
"type": "element"
|
|
24
|
+
},
|
|
25
|
+
"title": {
|
|
26
|
+
"signature": "<title>Document Title</title>",
|
|
27
|
+
"description": "Defines the document's title shown in the browser's title bar or tab. Required in all HTML documents. Important for SEO and accessibility.",
|
|
28
|
+
"type": "element"
|
|
29
|
+
},
|
|
30
|
+
"meta": {
|
|
31
|
+
"signature": "<meta name=\"...\" content=\"...\" />",
|
|
32
|
+
"description": "Represents metadata that cannot be expressed by other meta-related elements (base, link, script, style, title). Used for charset, viewport, description, keywords, and Open Graph.",
|
|
33
|
+
"type": "element"
|
|
34
|
+
},
|
|
35
|
+
"link": {
|
|
36
|
+
"signature": "<link rel=\"stylesheet\" href=\"...\" />",
|
|
37
|
+
"description": "Specifies relationships between the current document and external resources. Most commonly used for stylesheets, favicons, and resource hints (preconnect, preload, prefetch).",
|
|
38
|
+
"type": "element"
|
|
39
|
+
},
|
|
40
|
+
"script": {
|
|
41
|
+
"signature": "<script src=\"...\" defer></script>",
|
|
42
|
+
"description": "Embeds executable code or references an external script file. Use `defer` or `async` to control loading behavior. `type=\"module\"` enables ES modules.",
|
|
43
|
+
"type": "element"
|
|
44
|
+
},
|
|
45
|
+
"style": {
|
|
46
|
+
"signature": "<style>...</style>",
|
|
47
|
+
"description": "Contains CSS styling rules for the document. Placed in `<head>`. For large stylesheets, prefer external `<link>` for cacheability.",
|
|
48
|
+
"type": "element"
|
|
49
|
+
},
|
|
50
|
+
"base": {
|
|
51
|
+
"signature": "<base href=\"...\" target=\"_blank\" />",
|
|
52
|
+
"description": "Specifies the base URL and/or default target for all relative URLs in the document. There can be only one `<base>` per document.",
|
|
53
|
+
"type": "element"
|
|
54
|
+
},
|
|
55
|
+
"noscript": {
|
|
56
|
+
"signature": "<noscript>...</noscript>",
|
|
57
|
+
"description": "Defines content to be displayed if the browser does not support scripting or has scripts disabled. Can appear in both `<head>` and `<body>`.",
|
|
58
|
+
"type": "element"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"sectioning": {
|
|
63
|
+
"signature": "Sectioning Elements",
|
|
64
|
+
"description": "Elements that define the sections and structure of an HTML document.",
|
|
65
|
+
"type": "category",
|
|
66
|
+
"module": "HTML5",
|
|
67
|
+
"members": {
|
|
68
|
+
"header": {
|
|
69
|
+
"signature": "<header>...</header>",
|
|
70
|
+
"description": "Represents introductory content or a group of navigational aids. Can contain headings, logos, search forms, author names. Not limited to top of page — usable in `<article>` or `<section>`.",
|
|
71
|
+
"type": "element"
|
|
72
|
+
},
|
|
73
|
+
"footer": {
|
|
74
|
+
"signature": "<footer>...</footer>",
|
|
75
|
+
"description": "Represents a footer for its nearest sectioning content or sectioning root element. Typically contains author info, copyright data, or related links.",
|
|
76
|
+
"type": "element"
|
|
77
|
+
},
|
|
78
|
+
"nav": {
|
|
79
|
+
"signature": "<nav>...</nav>",
|
|
80
|
+
"description": "Represents a section with navigation links. Intended for major navigation blocks (site nav, table of contents). Not all link groups need `<nav>`.",
|
|
81
|
+
"type": "element"
|
|
82
|
+
},
|
|
83
|
+
"main": {
|
|
84
|
+
"signature": "<main>...</main>",
|
|
85
|
+
"description": "Represents the dominant content of the `<body>`. Only one visible `<main>` per page. Content unique to the page — excludes repeated elements like sidebars and navs.",
|
|
86
|
+
"type": "element"
|
|
87
|
+
},
|
|
88
|
+
"section": {
|
|
89
|
+
"signature": "<section>...</section>",
|
|
90
|
+
"description": "Represents a standalone section of content. Each section should typically have a heading. Use when content forms a logical group.",
|
|
91
|
+
"type": "element"
|
|
92
|
+
},
|
|
93
|
+
"article": {
|
|
94
|
+
"signature": "<article>...</article>",
|
|
95
|
+
"description": "Represents a self-contained composition intended for independent distribution or reuse: blog posts, news articles, forum posts, product cards, user comments.",
|
|
96
|
+
"type": "element"
|
|
97
|
+
},
|
|
98
|
+
"aside": {
|
|
99
|
+
"signature": "<aside>...</aside>",
|
|
100
|
+
"description": "Represents content tangentially related to surrounding content. Common uses: sidebars, pull quotes, advertising, groups of related links.",
|
|
101
|
+
"type": "element"
|
|
102
|
+
},
|
|
103
|
+
"h1": {
|
|
104
|
+
"signature": "<h1>...</h1>",
|
|
105
|
+
"description": "Top-level heading. Use only one per page. Critical for SEO and document outline.",
|
|
106
|
+
"type": "element"
|
|
107
|
+
},
|
|
108
|
+
"h2": {
|
|
109
|
+
"signature": "<h2>...</h2>",
|
|
110
|
+
"description": "Second-level heading. Used for major sections under the page title.",
|
|
111
|
+
"type": "element"
|
|
112
|
+
},
|
|
113
|
+
"h3": {
|
|
114
|
+
"signature": "<h3>...</h3>",
|
|
115
|
+
"description": "Third-level heading. Used for sub-sections within an `<h2>` section.",
|
|
116
|
+
"type": "element"
|
|
117
|
+
},
|
|
118
|
+
"h4": {
|
|
119
|
+
"signature": "<h4>...</h4>",
|
|
120
|
+
"description": "Fourth-level heading.",
|
|
121
|
+
"type": "element"
|
|
122
|
+
},
|
|
123
|
+
"h5": {
|
|
124
|
+
"signature": "<h5>...</h5>",
|
|
125
|
+
"description": "Fifth-level heading.",
|
|
126
|
+
"type": "element"
|
|
127
|
+
},
|
|
128
|
+
"h6": {
|
|
129
|
+
"signature": "<h6>...</h6>",
|
|
130
|
+
"description": "Sixth-level (lowest) heading.",
|
|
131
|
+
"type": "element"
|
|
132
|
+
},
|
|
133
|
+
"hgroup": {
|
|
134
|
+
"signature": "<hgroup>...</hgroup>",
|
|
135
|
+
"description": "Groups a heading with secondary content such as subheadings, alternative titles, or taglines. Contains one heading element (h1–h6) and optionally `<p>` elements.",
|
|
136
|
+
"type": "element"
|
|
137
|
+
},
|
|
138
|
+
"address": {
|
|
139
|
+
"signature": "<address>...</address>",
|
|
140
|
+
"description": "Provides contact information for the nearest `<article>` or `<body>` ancestor. Typically rendered in italic. Not for arbitrary postal addresses.",
|
|
141
|
+
"type": "element"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"text_content": {
|
|
146
|
+
"signature": "Text Content Elements",
|
|
147
|
+
"description": "Elements used for organizing blocks of text content within the body.",
|
|
148
|
+
"type": "category",
|
|
149
|
+
"module": "HTML5",
|
|
150
|
+
"members": {
|
|
151
|
+
"p": {
|
|
152
|
+
"signature": "<p>...</p>",
|
|
153
|
+
"description": "Represents a paragraph of text. Browsers add vertical margins by default. Cannot contain block-level elements.",
|
|
154
|
+
"type": "element"
|
|
155
|
+
},
|
|
156
|
+
"div": {
|
|
157
|
+
"signature": "<div>...</div>",
|
|
158
|
+
"description": "Generic container for flow content. Has no semantic meaning. Use when no other semantic element (article, section, nav, etc.) is appropriate.",
|
|
159
|
+
"type": "element"
|
|
160
|
+
},
|
|
161
|
+
"span": {
|
|
162
|
+
"signature": "<span>...</span>",
|
|
163
|
+
"description": "Generic inline container for phrasing content. Used for styling or grouping when no semantic element fits.",
|
|
164
|
+
"type": "element"
|
|
165
|
+
},
|
|
166
|
+
"pre": {
|
|
167
|
+
"signature": "<pre>...</pre>",
|
|
168
|
+
"description": "Represents preformatted text. Whitespace is displayed exactly as written. Commonly used with `<code>` for code blocks.",
|
|
169
|
+
"type": "element"
|
|
170
|
+
},
|
|
171
|
+
"blockquote": {
|
|
172
|
+
"signature": "<blockquote cite=\"url\">...</blockquote>",
|
|
173
|
+
"description": "Indicates an extended quotation from another source. The `cite` attribute provides the source URL. Typically indented by browsers.",
|
|
174
|
+
"type": "element"
|
|
175
|
+
},
|
|
176
|
+
"ol": {
|
|
177
|
+
"signature": "<ol start=\"1\" type=\"1\" reversed>...</ol>",
|
|
178
|
+
"description": "Represents an ordered list. Items are numbered. Supports `start`, `type` (1, a, A, i, I), and `reversed` attributes.",
|
|
179
|
+
"type": "element"
|
|
180
|
+
},
|
|
181
|
+
"ul": {
|
|
182
|
+
"signature": "<ul>...</ul>",
|
|
183
|
+
"description": "Represents an unordered list of items, typically rendered with bullet points.",
|
|
184
|
+
"type": "element"
|
|
185
|
+
},
|
|
186
|
+
"li": {
|
|
187
|
+
"signature": "<li value=\"n\">...</li>",
|
|
188
|
+
"description": "Represents a list item. Must be a direct child of `<ul>`, `<ol>`, or `<menu>`. In `<ol>`, the `value` attribute overrides numbering.",
|
|
189
|
+
"type": "element"
|
|
190
|
+
},
|
|
191
|
+
"dl": {
|
|
192
|
+
"signature": "<dl>...</dl>",
|
|
193
|
+
"description": "Represents a description list — a list of term-description groups. Contains `<dt>` (term) and `<dd>` (description) pairs.",
|
|
194
|
+
"type": "element"
|
|
195
|
+
},
|
|
196
|
+
"dt": {
|
|
197
|
+
"signature": "<dt>...</dt>",
|
|
198
|
+
"description": "Specifies a term in a description list (`<dl>`). Usually followed by one or more `<dd>` elements.",
|
|
199
|
+
"type": "element"
|
|
200
|
+
},
|
|
201
|
+
"dd": {
|
|
202
|
+
"signature": "<dd>...</dd>",
|
|
203
|
+
"description": "Provides the description or definition for the preceding `<dt>` in a description list.",
|
|
204
|
+
"type": "element"
|
|
205
|
+
},
|
|
206
|
+
"figure": {
|
|
207
|
+
"signature": "<figure>...</figure>",
|
|
208
|
+
"description": "Represents self-contained content, optionally with a caption (`<figcaption>`). Used for images, illustrations, diagrams, code listings.",
|
|
209
|
+
"type": "element"
|
|
210
|
+
},
|
|
211
|
+
"figcaption": {
|
|
212
|
+
"signature": "<figcaption>...</figcaption>",
|
|
213
|
+
"description": "Represents a caption or legend for a `<figure>` element. Should be the first or last child of `<figure>`.",
|
|
214
|
+
"type": "element"
|
|
215
|
+
},
|
|
216
|
+
"hr": {
|
|
217
|
+
"signature": "<hr />",
|
|
218
|
+
"description": "Represents a thematic break between paragraph-level elements. Rendered as a horizontal line by default.",
|
|
219
|
+
"type": "element"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"inline_text": {
|
|
224
|
+
"signature": "Inline Text Semantics",
|
|
225
|
+
"description": "Elements that define the meaning, structure, or style of a word, line, or piece of text.",
|
|
226
|
+
"type": "category",
|
|
227
|
+
"module": "HTML5",
|
|
228
|
+
"members": {
|
|
229
|
+
"a": {
|
|
230
|
+
"signature": "<a href=\"url\">...</a>",
|
|
231
|
+
"description": "Creates a hyperlink. The `href` attribute specifies the link destination. Use `target=\"_blank\"` with `rel=\"noopener\"` for external links.",
|
|
232
|
+
"type": "element"
|
|
233
|
+
},
|
|
234
|
+
"em": {
|
|
235
|
+
"signature": "<em>...</em>",
|
|
236
|
+
"description": "Marks text that has stress emphasis. Renders italic by default. Nesting `<em>` increases emphasis level.",
|
|
237
|
+
"type": "element"
|
|
238
|
+
},
|
|
239
|
+
"strong": {
|
|
240
|
+
"signature": "<strong>...</strong>",
|
|
241
|
+
"description": "Indicates strong importance, seriousness, or urgency. Renders bold by default.",
|
|
242
|
+
"type": "element"
|
|
243
|
+
},
|
|
244
|
+
"small": {
|
|
245
|
+
"signature": "<small>...</small>",
|
|
246
|
+
"description": "Represents side comments and small print, like copyright and legal text.",
|
|
247
|
+
"type": "element"
|
|
248
|
+
},
|
|
249
|
+
"s": {
|
|
250
|
+
"signature": "<s>...</s>",
|
|
251
|
+
"description": "Represents text that is no longer accurate or relevant (strikethrough). Not for document edits — use `<del>` instead.",
|
|
252
|
+
"type": "element"
|
|
253
|
+
},
|
|
254
|
+
"cite": {
|
|
255
|
+
"signature": "<cite>...</cite>",
|
|
256
|
+
"description": "Represents the title of a creative work (book, film, song). Renders italic by default.",
|
|
257
|
+
"type": "element"
|
|
258
|
+
},
|
|
259
|
+
"q": {
|
|
260
|
+
"signature": "<q cite=\"url\">...</q>",
|
|
261
|
+
"description": "Represents a short inline quotation. Browsers automatically add quotation marks.",
|
|
262
|
+
"type": "element"
|
|
263
|
+
},
|
|
264
|
+
"dfn": {
|
|
265
|
+
"signature": "<dfn>...</dfn>",
|
|
266
|
+
"description": "Represents the defining instance of a term. The paragraph or description list containing `<dfn>` provides the definition.",
|
|
267
|
+
"type": "element"
|
|
268
|
+
},
|
|
269
|
+
"abbr": {
|
|
270
|
+
"signature": "<abbr title=\"full\">ABBR</abbr>",
|
|
271
|
+
"description": "Represents an abbreviation or acronym. The `title` attribute provides the full expansion.",
|
|
272
|
+
"type": "element"
|
|
273
|
+
},
|
|
274
|
+
"code": {
|
|
275
|
+
"signature": "<code>...</code>",
|
|
276
|
+
"description": "Displays content as a fragment of computer code. Uses a monospace font by default. Wrap in `<pre>` for multi-line code blocks.",
|
|
277
|
+
"type": "element"
|
|
278
|
+
},
|
|
279
|
+
"var": {
|
|
280
|
+
"signature": "<var>...</var>",
|
|
281
|
+
"description": "Represents a variable name in a mathematical expression or programming context.",
|
|
282
|
+
"type": "element"
|
|
283
|
+
},
|
|
284
|
+
"samp": {
|
|
285
|
+
"signature": "<samp>...</samp>",
|
|
286
|
+
"description": "Represents sample (or quoted) output from a computer program.",
|
|
287
|
+
"type": "element"
|
|
288
|
+
},
|
|
289
|
+
"kbd": {
|
|
290
|
+
"signature": "<kbd>...</kbd>",
|
|
291
|
+
"description": "Represents a span of inline text denoting textual user input from a keyboard or other input device.",
|
|
292
|
+
"type": "element"
|
|
293
|
+
},
|
|
294
|
+
"sub": {
|
|
295
|
+
"signature": "<sub>...</sub>",
|
|
296
|
+
"description": "Specifies subscript text — displayed lower and smaller (e.g., chemical formulas: H₂O).",
|
|
297
|
+
"type": "element"
|
|
298
|
+
},
|
|
299
|
+
"sup": {
|
|
300
|
+
"signature": "<sup>...</sup>",
|
|
301
|
+
"description": "Specifies superscript text — displayed higher and smaller (e.g., footnotes, exponents).",
|
|
302
|
+
"type": "element"
|
|
303
|
+
},
|
|
304
|
+
"mark": {
|
|
305
|
+
"signature": "<mark>...</mark>",
|
|
306
|
+
"description": "Represents text highlighted for reference or notation purposes. Rendered with a yellow background by default.",
|
|
307
|
+
"type": "element"
|
|
308
|
+
},
|
|
309
|
+
"time": {
|
|
310
|
+
"signature": "<time datetime=\"2025-01-01\">...</time>",
|
|
311
|
+
"description": "Represents a specific time or date. The `datetime` attribute provides a machine-readable value.",
|
|
312
|
+
"type": "element"
|
|
313
|
+
},
|
|
314
|
+
"br": {
|
|
315
|
+
"signature": "<br />",
|
|
316
|
+
"description": "Produces a line break in text. Should not be used for spacing — use CSS margin/padding instead.",
|
|
317
|
+
"type": "element"
|
|
318
|
+
},
|
|
319
|
+
"wbr": {
|
|
320
|
+
"signature": "<wbr />",
|
|
321
|
+
"description": "Represents a word break opportunity — the browser may break the line at this point if needed.",
|
|
322
|
+
"type": "element"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"forms": {
|
|
327
|
+
"signature": "Form Elements",
|
|
328
|
+
"description": "Elements for creating interactive forms to collect user input.",
|
|
329
|
+
"type": "category",
|
|
330
|
+
"module": "HTML5",
|
|
331
|
+
"members": {
|
|
332
|
+
"form": {
|
|
333
|
+
"signature": "<form action=\"url\" method=\"post\">...</form>",
|
|
334
|
+
"description": "Represents a section containing interactive controls for submitting information. Key attributes: `action`, `method`, `enctype`, `novalidate`, `autocomplete`.",
|
|
335
|
+
"type": "element"
|
|
336
|
+
},
|
|
337
|
+
"input": {
|
|
338
|
+
"signature": "<input type=\"text\" name=\"field\" />",
|
|
339
|
+
"description": "Creates interactive form controls. The `type` attribute determines behavior: text, password, email, number, checkbox, radio, file, date, range, color, hidden, submit, and more.",
|
|
340
|
+
"type": "element"
|
|
341
|
+
},
|
|
342
|
+
"button": {
|
|
343
|
+
"signature": "<button type=\"submit\">Label</button>",
|
|
344
|
+
"description": "Represents a clickable button. Types: `submit` (form submission), `button` (custom JS), `reset` (form reset). Can contain HTML content unlike `<input type=\"button\">`.",
|
|
345
|
+
"type": "element"
|
|
346
|
+
},
|
|
347
|
+
"select": {
|
|
348
|
+
"signature": "<select name=\"field\">...</select>",
|
|
349
|
+
"description": "Represents a dropdown menu of options. Use `multiple` for multi-select. Group options with `<optgroup>`.",
|
|
350
|
+
"type": "element"
|
|
351
|
+
},
|
|
352
|
+
"option": {
|
|
353
|
+
"signature": "<option value=\"val\">Label</option>",
|
|
354
|
+
"description": "Defines an item in a `<select>`, `<optgroup>`, or `<datalist>`. The `value` is submitted; text content is displayed.",
|
|
355
|
+
"type": "element"
|
|
356
|
+
},
|
|
357
|
+
"optgroup": {
|
|
358
|
+
"signature": "<optgroup label=\"Group\">...</optgroup>",
|
|
359
|
+
"description": "Groups options within a `<select>` element. The `label` attribute provides a visible heading for the group.",
|
|
360
|
+
"type": "element"
|
|
361
|
+
},
|
|
362
|
+
"textarea": {
|
|
363
|
+
"signature": "<textarea name=\"field\" rows=\"4\" cols=\"50\"></textarea>",
|
|
364
|
+
"description": "Multi-line plain-text editing control. Control size with `rows`/`cols` or CSS. Supports `maxlength`, `minlength`, `placeholder`, `wrap`.",
|
|
365
|
+
"type": "element"
|
|
366
|
+
},
|
|
367
|
+
"label": {
|
|
368
|
+
"signature": "<label for=\"inputId\">Label</label>",
|
|
369
|
+
"description": "Associates a caption with a form control. Use the `for` attribute matching an `id`, or wrap the control inside the label. Improves accessibility and click targets.",
|
|
370
|
+
"type": "element"
|
|
371
|
+
},
|
|
372
|
+
"fieldset": {
|
|
373
|
+
"signature": "<fieldset>...</fieldset>",
|
|
374
|
+
"description": "Groups related form controls together. Often used with `<legend>` for a caption. Can be `disabled` to disable all contained controls.",
|
|
375
|
+
"type": "element"
|
|
376
|
+
},
|
|
377
|
+
"legend": {
|
|
378
|
+
"signature": "<legend>Group Title</legend>",
|
|
379
|
+
"description": "Provides a caption for the content of its parent `<fieldset>`. Must be the first child of `<fieldset>`.",
|
|
380
|
+
"type": "element"
|
|
381
|
+
},
|
|
382
|
+
"output": {
|
|
383
|
+
"signature": "<output name=\"result\" for=\"a b\">0</output>",
|
|
384
|
+
"description": "Represents the result of a calculation or user action. The `for` attribute references inputs that contributed to the result.",
|
|
385
|
+
"type": "element"
|
|
386
|
+
},
|
|
387
|
+
"progress": {
|
|
388
|
+
"signature": "<progress value=\"70\" max=\"100\">70%</progress>",
|
|
389
|
+
"description": "Displays completion progress of a task. If no `value`, shows indeterminate state. Text content is fallback.",
|
|
390
|
+
"type": "element"
|
|
391
|
+
},
|
|
392
|
+
"meter": {
|
|
393
|
+
"signature": "<meter value=\"0.6\" min=\"0\" max=\"1\">60%</meter>",
|
|
394
|
+
"description": "Represents a scalar measurement within a known range (not progress — use `<progress>` for that). Supports `low`, `high`, `optimum`.",
|
|
395
|
+
"type": "element"
|
|
396
|
+
},
|
|
397
|
+
"datalist": {
|
|
398
|
+
"signature": "<datalist id=\"list\">...</datalist>",
|
|
399
|
+
"description": "Contains `<option>` elements representing predefined suggestions for an `<input>`. Link via the input's `list` attribute.",
|
|
400
|
+
"type": "element"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"media": {
|
|
405
|
+
"signature": "Media Elements",
|
|
406
|
+
"description": "Elements for embedding images, video, audio, and other media content.",
|
|
407
|
+
"type": "category",
|
|
408
|
+
"module": "HTML5",
|
|
409
|
+
"members": {
|
|
410
|
+
"img": {
|
|
411
|
+
"signature": "<img src=\"url\" alt=\"description\" />",
|
|
412
|
+
"description": "Embeds an image. `src` and `alt` are required. Use `width`/`height` to prevent layout shift. Use `loading=\"lazy\"` for below-fold images.",
|
|
413
|
+
"type": "element"
|
|
414
|
+
},
|
|
415
|
+
"video": {
|
|
416
|
+
"signature": "<video src=\"url\" controls>...</video>",
|
|
417
|
+
"description": "Embeds a media player for video playback. Key attributes: `controls`, `autoplay`, `muted`, `loop`, `poster`, `preload`. Use `<source>` for multiple formats.",
|
|
418
|
+
"type": "element"
|
|
419
|
+
},
|
|
420
|
+
"audio": {
|
|
421
|
+
"signature": "<audio controls>...</audio>",
|
|
422
|
+
"description": "Embeds sound content. Supports `controls`, `autoplay`, `muted`, `loop`, `preload`. Use `<source>` for format fallbacks.",
|
|
423
|
+
"type": "element"
|
|
424
|
+
},
|
|
425
|
+
"source": {
|
|
426
|
+
"signature": "<source src=\"file\" type=\"mime\" />",
|
|
427
|
+
"description": "Specifies multiple media resources for `<picture>`, `<audio>`, or `<video>`. Browser selects the first supported source.",
|
|
428
|
+
"type": "element"
|
|
429
|
+
},
|
|
430
|
+
"track": {
|
|
431
|
+
"signature": "<track kind=\"subtitles\" src=\"file.vtt\" srclang=\"en\" />",
|
|
432
|
+
"description": "Specifies timed text tracks (subtitles, captions, descriptions) for `<video>` and `<audio>`. Uses WebVTT format.",
|
|
433
|
+
"type": "element"
|
|
434
|
+
},
|
|
435
|
+
"picture": {
|
|
436
|
+
"signature": "<picture>...</picture>",
|
|
437
|
+
"description": "Contains `<source>` elements and one `<img>` fallback for responsive images. Browser selects the best source based on media queries, format, and resolution.",
|
|
438
|
+
"type": "element"
|
|
439
|
+
},
|
|
440
|
+
"canvas": {
|
|
441
|
+
"signature": "<canvas id=\"c\" width=\"400\" height=\"300\"></canvas>",
|
|
442
|
+
"description": "Container for drawing graphics via the Canvas 2D API or WebGL. Set dimensions via attributes. Content inside is fallback for unsupported browsers.",
|
|
443
|
+
"type": "element"
|
|
444
|
+
},
|
|
445
|
+
"svg": {
|
|
446
|
+
"signature": "<svg viewBox=\"0 0 100 100\">...</svg>",
|
|
447
|
+
"description": "Container for SVG (Scalable Vector Graphics). Resolution-independent. Supports shapes, paths, text, gradients, filters, animations, and interactivity.",
|
|
448
|
+
"type": "element"
|
|
449
|
+
},
|
|
450
|
+
"iframe": {
|
|
451
|
+
"signature": "<iframe src=\"url\" title=\"...\"></iframe>",
|
|
452
|
+
"description": "Embeds another HTML page within the current page. Use `sandbox` to restrict, `allow` for permissions policy, `loading=\"lazy\"` for performance.",
|
|
453
|
+
"type": "element"
|
|
454
|
+
},
|
|
455
|
+
"embed": {
|
|
456
|
+
"signature": "<embed src=\"file\" type=\"mime\" />",
|
|
457
|
+
"description": "Embeds external content provided by an external application or plugin. Use `<iframe>` or other specific elements when possible.",
|
|
458
|
+
"type": "element"
|
|
459
|
+
},
|
|
460
|
+
"object": {
|
|
461
|
+
"signature": "<object data=\"file\" type=\"mime\">...</object>",
|
|
462
|
+
"description": "Represents an external resource: image, nested browsing context, or plugin-handled resource. Largely replaced by specific elements.",
|
|
463
|
+
"type": "element"
|
|
464
|
+
},
|
|
465
|
+
"map": {
|
|
466
|
+
"signature": "<map name=\"mapname\">...</map>",
|
|
467
|
+
"description": "Defines a client-side image map with clickable areas. Used with `<area>` elements and linked via `<img usemap=\"#mapname\">`.",
|
|
468
|
+
"type": "element"
|
|
469
|
+
},
|
|
470
|
+
"area": {
|
|
471
|
+
"signature": "<area shape=\"rect\" coords=\"...\" href=\"url\" alt=\"...\" />",
|
|
472
|
+
"description": "Defines clickable areas inside an image map. Shapes: `rect`, `circle`, `poly`, `default`.",
|
|
473
|
+
"type": "element"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"interactive": {
|
|
478
|
+
"signature": "Interactive Elements",
|
|
479
|
+
"description": "Elements that provide interactive user interface components.",
|
|
480
|
+
"type": "category",
|
|
481
|
+
"module": "HTML5",
|
|
482
|
+
"members": {
|
|
483
|
+
"details": {
|
|
484
|
+
"signature": "<details open>...</details>",
|
|
485
|
+
"description": "Creates a disclosure widget that can be toggled open/closed. Must contain a `<summary>` as the first child. The `open` attribute controls default state.",
|
|
486
|
+
"type": "element"
|
|
487
|
+
},
|
|
488
|
+
"summary": {
|
|
489
|
+
"signature": "<summary>...</summary>",
|
|
490
|
+
"description": "Specifies the visible heading for a `<details>` widget. Clicking toggles the disclosure. Must be the first child of `<details>`.",
|
|
491
|
+
"type": "element"
|
|
492
|
+
},
|
|
493
|
+
"dialog": {
|
|
494
|
+
"signature": "<dialog id=\"dlg\">...</dialog>",
|
|
495
|
+
"description": "Represents a dialog box or subwindow. Use `.showModal()` for modal dialogs with backdrop, `.show()` for modeless. Built-in focus trapping and Escape key handling.",
|
|
496
|
+
"type": "element"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"table": {
|
|
501
|
+
"signature": "Table Elements",
|
|
502
|
+
"description": "Elements for creating and structuring tabular data.",
|
|
503
|
+
"type": "category",
|
|
504
|
+
"module": "HTML5",
|
|
505
|
+
"members": {
|
|
506
|
+
"table": {
|
|
507
|
+
"signature": "<table>...</table>",
|
|
508
|
+
"description": "Represents tabular data — information in a two-dimensional table. Use for data, not layout. Structure with `<thead>`, `<tbody>`, `<tfoot>`.",
|
|
509
|
+
"type": "element"
|
|
510
|
+
},
|
|
511
|
+
"caption": {
|
|
512
|
+
"signature": "<caption>Table Title</caption>",
|
|
513
|
+
"description": "Specifies the title of a table. Must be the first child of `<table>`. Helps screen readers understand table purpose.",
|
|
514
|
+
"type": "element"
|
|
515
|
+
},
|
|
516
|
+
"thead": {
|
|
517
|
+
"signature": "<thead>...</thead>",
|
|
518
|
+
"description": "Groups the header content in a table. Contains rows with `<th>` header cells.",
|
|
519
|
+
"type": "element"
|
|
520
|
+
},
|
|
521
|
+
"tbody": {
|
|
522
|
+
"signature": "<tbody>...</tbody>",
|
|
523
|
+
"description": "Groups the body content in a table. Multiple `<tbody>` elements can be used to group different sections.",
|
|
524
|
+
"type": "element"
|
|
525
|
+
},
|
|
526
|
+
"tfoot": {
|
|
527
|
+
"signature": "<tfoot>...</tfoot>",
|
|
528
|
+
"description": "Groups the footer content in a table. Typically contains summary rows.",
|
|
529
|
+
"type": "element"
|
|
530
|
+
},
|
|
531
|
+
"tr": {
|
|
532
|
+
"signature": "<tr>...</tr>",
|
|
533
|
+
"description": "Defines a row of cells in a table. Contains `<td>` and/or `<th>` elements.",
|
|
534
|
+
"type": "element"
|
|
535
|
+
},
|
|
536
|
+
"th": {
|
|
537
|
+
"signature": "<th scope=\"col\">Header</th>",
|
|
538
|
+
"description": "Defines a header cell. Use `scope` attribute (col, row, colgroup, rowgroup) to associate with data cells. Supports `colspan` and `rowspan`.",
|
|
539
|
+
"type": "element"
|
|
540
|
+
},
|
|
541
|
+
"td": {
|
|
542
|
+
"signature": "<td colspan=\"1\" rowspan=\"1\">Data</td>",
|
|
543
|
+
"description": "Defines a standard data cell. Supports `colspan` and `rowspan` to span multiple columns or rows.",
|
|
544
|
+
"type": "element"
|
|
545
|
+
},
|
|
546
|
+
"colgroup": {
|
|
547
|
+
"signature": "<colgroup>...</colgroup>",
|
|
548
|
+
"description": "Defines a group of columns within a table for applying styles or attributes together.",
|
|
549
|
+
"type": "element"
|
|
550
|
+
},
|
|
551
|
+
"col": {
|
|
552
|
+
"signature": "<col span=\"2\" />",
|
|
553
|
+
"description": "Defines column properties within a `<colgroup>`. The `span` attribute specifies how many columns the element encompasses.",
|
|
554
|
+
"type": "element"
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|