This repository was archived by the owner on Mar 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml-tags.json
More file actions
451 lines (451 loc) · 14.1 KB
/
html-tags.json
File metadata and controls
451 lines (451 loc) · 14.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
{
"a": {
"autocomplete": [
{
},
{
"displayText": "a href=\"\"",
"snippet": "a href=\"${1:#}\""
},
{
"snippet": "a name=\"${1:name}\""
},
{
"displayText": "a href=\"mailto:\"",
"snippet": "a href=\"mailto:${1:joe@example.com}?subject=${2:feedback}\""
}
]
},
"abbr": {
"autocomplete": [
{
},
{
"snippet": "abbr title=\"$1\""
}
]
},
"area": {
"autocomplete": [
{
},
{
"displayText": "area shape=\"\" coords=\"\" href=\"\"",
"snippet": "area ${1:shape=\"${2:default}\"} coords=\"$3\" ${4:href=\"${5:#}\"}"
}
]
},
"audio": {
"autocomplete": [
{
},
{
"snippet": "audio src=\"$1\""
}
]
},
"base": {
"autocomplete": [
{
},
{
"snippet": "base href=\"${1:#}\" target=\"${2:_blank}\""
}
],
"openTagOnly": true
},
"bdi": {
"autocomplete": [
{
},
{
"snippet": "bdi dir=\"${1:auto}\""
}
]
},
"bdo": {
"autocomplete": [
{
},
{
"snippet": "bdo dir=\"${1:auto}\""
}
]
},
"blockquote": {
"autocomplete": [
{
},
{
"snippet": "blockquote cite=\"${1:http://}\""
}
]
},
"button": {
"autocomplete": [
{
},
{
"displayText": "button type=\"button\"",
"snippet": "button type=\"${1:button}\""
}
]
},
"canvas": {
"autocomplete": [
{
},
{
"snippet": "canvas id=\"${1:canvas}\" width=\"${2:300}\" height=\"${3:300}\""
}
]
},
"content": {
"autocomplete": [
{
},
{
"snippet": "content select=\"$1\""
}
]
},
"data": {
"autocomplete": [
{
},
{
"snippet": "data value=\"$1\""
}
]
},
"div": {
"autocomplete": [
{
},
{
"snippet": "div class=\"$2\""
}
]
},
"embed": {
"autocomplete": [
{},
{
"snippet": "embed type=\"${1:video/quicktime}\" src=\"${2:#}\" width=\"${3:300}\" height=\"${4:300}\""
}
],
"openTagOnly": true
},
"form": {
"autocomplete": [
{},
{
"snippet": "form class=\"$1\" action=\"${2:index.html}\" method=\"${3:post}\""
}
]
},
"html": {
"autocomplete": [
{},
{
"snippet": "!DOCTYPE html"
},
{
"displayText": "HTML page",
"snippet": "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"UTF-8\">\n\t\t<title>${1:title}</title>\n\t</head>\n\t<body>\n\t\t$2\n\t</body>\n</html>\n"
},
{
"displayText": "HTML page (concise)",
"snippet": "<!DOCTYPE html>\nhtml lang=\"en\"\n\thead\n\t\tmeta charset=\"UTF-8\"\n\t\t<title>${1:title}</title>\n\tbody\n\t\t$2\n"
}
]
},
"iframe": {
"autocomplete": [
{},
{
"snippet": "iframe src=\"$1\" width=\"$2\" height=\"$3\""
}
]
},
"input": {
"autocomplete": [
{},
{
"snippet": "input type=\"${1}\" name=\"${2:name}\" value=\"$3\"",
"triggerAutocompleteAfterInsert": true
}
],
"openTagOnly": true,
"attributeOptions": {
"type": [
{
"text": "button",
"description": "A push button with no default behavior."
},
{
"text": "checkbox",
"description": "A check box. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected. You can also use the indeterminate attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox)."
},
{
"text": "color",
"description": "HTML5 A control for specifying a color. A color picker's UI has no required features other than accepting simple colors as text (more info)."
},
{
"text": "date",
"description": "HTML5 A control for entering a date (year, month, and day, with no time)."
},
{
"text": "datetime",
"description": "HTML5 A control for entering a date and time (hour, minute, second, and fraction of a second) based on UTC time zone. This feature has been removed from WHATWG HTML."
},
{
"text": "datetime-local",
"description": "HTML5 A control for entering a date and time, with no time zone."
},
{
"text": "email",
"description": "HTML5 A field for editing an e-mail address. The input value is validated to contain either the empty string or a single valid e-mail address before submitting. The :valid and :invalid CSS pseudo-classes are applied as appropriate."
},
{
"text": "file",
"description": "A control that lets the user select a file. Use the accept attribute to define the types of files that the control can select."
},
{
"text": "hidden",
"description": "A control that is not displayed, but whose value is submitted to the server."
},
{
"text": "image",
"description": "A graphical submit button. You must use the src attribute to define the source of the image and the alt attribute to define alternative text. You can use the height and width attributes to define the size of the image in pixels."
},
{
"text": "month",
"description": "HTML5 A control for entering a month and year, with no time zone."
},
{
"text": "number",
"description": "HTML5 A control for entering a floating point number."
},
{
"text": "password",
"description": "A single-line text field whose value is obscured. Use the maxlength attribute to specify the maximum length of the value that can be entered."
},
{
"text": "radio",
"description": "A radio button. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected by default. Radio buttons that have the same value for the name attribute are in the same \"radio button group\"; only one radio button in a group can be selected at a time."
},
{
"text": "range",
"description": "HTML5 A control for entering a number whose exact value is not important."
},
{
"text": "reset",
"description": "A button that resets the contents of the form to default values."
},
{
"text": "search",
"description": "HTML5 A single-line text field for entering search strings; line-breaks are automatically removed from the input value."
},
{
"text": "submit",
"description": "A button that submits the form."
},
{
"text": "tel",
"description": "HTML5 A control for entering a telephone number; line-breaks are automatically removed from the input value, but no other syntax is enforced. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate."
},
{
"text": "text",
"description": "A single-line text field; line-breaks are automatically removed from the input value."
},
{
"text": "time",
"description": "HTML5 A control for entering a time value with no time zone."
},
{
"text": "url",
"description": "HTML5 A field for editing a URL. The input value is validated to contain either the empty string or a valid absolute URL before submitting. Line-breaks and leading or trailing whitespace are automatically removed from the input value. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate."
},
{
"text": "week",
"description": "HTML5 A control for entering a date consisting of a week-year number and a week number with no time zone."
}
]
}
},
"img": {
"autocomplete": [
{},
{
"snippet": "img src=\"$1\" alt=\"$2\""
}
],
"openTagOnly": true
},
"keygen": {
"autocomplete": [
{},
{
"snippet": "keygen name=\"${1:name}\" challenge=\"${2:string}\" keytype=\"${3:RSA}\" keyparams=\"${4:medium}\""
}
],
"openTagOnly": true
},
"label": {
"autocomplete": [
{},
{
"snippet": "label${1: for=\"$2\"}"
}
]
},
"link": {
"autocomplete": [
{},
{
"snippet": "link rel=\"${1:stylesheet}\" href=\"${2:/css/master.css}\" media=\"${3:screen}\" title=\"${4:no title}\" charset=\"${5:utf-8}\""
},
{
"snippet": "link rel=\"icon\" href=\"$1.ico\""
},
{
"snippet": "link rel=\"import\" href=\"$1\""
}
],
"openTagOnly": true
},
"menuitem": {
"autocomplete": [
{},
{
"snippet": "menuitem type=\"${1:command}\" label=\"${2:Save}\""
}
]
},
"meter": {
"autocomplete": [
{},
{
"snippet": "meter min=\"${1:200}\" max=\"${2:500}\" value=\"${3:350}\""
}
]
},
"meta": {
"autocomplete": [
{
"snippet": "meta name=\"${1:name}\" content=\"${2:content}\""
}
],
"openTagOnly": true
},
"object": {
"autocomplete": [
{
"snippet": "object data=\"${1:http://}\" type=\"${2:mimetype}\""
}
]
},
"optgroup": {
"autocomplete": [
{
"snippet": "optgroup label=\"${1:Group 1}\""
}
]
},
"opt": {
"autocomplete": [
{
"snippet": "option${1: value=\"${2:option}\"}"
}
]
},
"output": {
"autocomplete": [
{
"snippet": "output name=\"${1:result}\""
}
]
},
"param": {
"autocomplete": [
{
"snippet": "param name=\"${1:foo}\" value=\"${2:bar}\""
}
],
"openTagOnly": true
},
"progress": {
"autocomplete": [
{
"snippet": "progress value=\"${1:50}\" max=\"${2:100}\""
}
]
},
"q": {
"autocomplete": [
{
"snippet": "q cite=\"$1\""
}
]
},
"script": {
"autocomplete": [
{
"snippet": "script src=\"${1:/static/foo.js}\""
}
]
},
"select": {
"autocomplete": [
{
"snippet": "select class=\"$1\" name=\"$2\""
}
]
},
"source": {
"autocomplete": [
{
"snippet": "source src=\"${1:http://}\" type=\"${2:mimetype}\""
}
],
"openTagOnly": true
},
"style": {
"autocomplete": [
{
"snippet": "style media=\"screen\""
}
]
},
"template": {
"autocomplete": [
{
"snippet": "template id=\"$1\""
}
]
},
"textarea": {
"autocomplete": [
{
"snippet": "textarea name=\"${1:name}\" rows=\"${2:8}\" cols=\"${3:40}\""
}
]
},
"track": {
"autocomplete": [
{
"snippet": "track kind=\"${1:subtitles}\" src=\"${2:sampleSubtitles_en.srt}\" srclang=\"${3:en}\""
}
],
"openTagOnly": true
},
"video": {
"autocomplete": [
{
"displayText": "video src=\"\" autoplay poster=\"\"",
"snippet": "video src=\"${1:videofile.ogg}\" ${2:autoplay} ${3:poster=\"${4:posterimage.jpg}\"}"
}
]
}
}