This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
html.json
285 lines (285 loc) · 11 KB
/
html.json
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
{
"id": "html_cheat_sheet",
"name": "HTML Elements",
"description": "HyperText Markup Language, is the standard markup language used to create web pages",
"metadata": {
"sourceName": "Mozilla Developer Network",
"sourceUrl": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element"
},
"aliases": [
"html5",
"html 5"
],
"template_type": "code",
"section_order": [
"Document Metadata",
"Content Sectioning",
"Text Content",
"Forms",
"Images and Multimedia",
"Inline Text Semantics",
"Embedded Content",
"Table Content",
"Scripting"
],
"sections": {
"Document Metadata": [
{
"key": "<head>",
"val": "Provides metadata about the document, including its title, scripts and style sheets"
},
{
"key": "<link>",
"val": "Specifies a link to an external resource, typically style sheets"
},
{
"key": "<meta>",
"val": "Any metadata information that cannot be represented by one of the other HTML meta-related elements (<base>, <link>, <script>, <style> or <title>)"
},
{
"key": "<style>",
"val": "Contains style information for a document written in CSS"
},
{
"key": "<title>",
"val": "Defines the title of the document, shown in a browser's title bar or on the page's tab"
}
],
"Content Sectioning": [
{
"key": "<body>",
"val": "Represents the content of a document. There can only be one <body> element in a document"
},
{
"key": "<footer>",
"val": "Represents a footer typically containing copyright data or links to related documents"
},
{
"key": "<header>",
"val": "Represents a group of elements like a logo, a search form, and navigation bar"
},
{
"key": "<h1>, <h2>, <h3>, <h4>, <h5>, <h6>",
"val": "A heading element briefly describes the topic of the section it introduces. <h1> is the most important and <h6> is the least"
},
{
"key": "<nav>",
"val": "Represents a section of a page that links to other pages or to parts within the page"
},
{
"key": "<article>",
"val": "Specifies independent, self-contained content"
}
],
"Text Content": [
{
"key": "<div>",
"val": "A generic container for flow content. It can be used to group elements for styling purposes (using the class or id attributes)"
},
{
"key": "<hr>",
"val": "Represents a thematic break between paragraphs, defined in semantic rather than presentational terms"
},
{
"key": "<li>",
"val": "Represents an item in a list and must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>)"
},
{
"key": "<ol>",
"val": "Represents an ordered list of items, typically displayed with a sequencial numbering"
},
{
"key": "<p>",
"val": "Represents a paragraph of text"
},
{
"key": "<pre>",
"val": "Represents preformatted text (i.e. text that is displayed without text formatting)"
},
{
"key": "<ul>",
"val": "Represents an unordered list of items, typically displayed with a bullet"
},
{
"key": "<address>",
"val": "Defines the contact information for the author/owner of a document or an article"
}
],
"Inline Text Semantics": [
{
"key": "<a>",
"val": "Defines a hyperlink to a location on the same page or any other page on the Web"
},
{
"key": "<b>",
"val": "Represents a span of text whose typical presentation would be boldfaced"
},
{
"key": "<br>",
"val": "Produces a line break in text (carriage-return)"
},
{
"key": "<code>",
"val": "Represents a fragment of computer code and displayed in the browser's default monospace font"
},
{
"key": "<em>",
"val": "Marks text that has stress emphasis. The <em> element can be nested, with each level of nesting indicating a greater degree of emphasis"
},
{
"key": "<i>",
"val": "Represents a range of text that is typically displayed in italic type"
},
{
"key": "<s>",
"val": "Renders text with a strikethrough, or a line through it"
},
{
"key": "<span>",
"val": "A generic inline container for phrasing content It can be used to group elements for styling purposes (using the class or id attributes)"
},
{
"key": "<strong>",
"val": "Gives text strong importance, and is typically displayed in bold"
},
{
"key": "<u>",
"val": "Renders text with an underline, a line under the baseline of its content"
}
],
"Images and Multimedia": [
{
"key": "<area>",
"val": "Defines a hot-spot region on an image, and optionally associates it with a hypertext link. This element is used only within a <map> element"
},
{
"key": "<audio>",
"val": "Used to embed sound content in documents"
},
{
"key": "<img>",
"val": "The HTML Image Element (<img>) represents an image of the document"
},
{
"key": "<map>",
"val": "Used with <area> elements to define an image map (a clickable link area)"
},
{
"key": "<track>",
"val": "Used as a child of <audio> and <video> elements. It lets you specify timed text tracks such as subtitles"
},
{
"key": "<video>",
"val": "The HTML <video> element is used to embed video content"
}
],
"Table Content": [
{
"key": "<table>",
"val": "Represents tabular data"
},
{
"key": "<caption>",
"val": "Represents the title of a table"
},
{
"key": "<td>",
"val": "Defines a cell of a table that contains data"
},
{
"key": "<th>",
"val": "Defines a cell that is a header for a group of cells of a table"
},
{
"key": "<tr>",
"val": "Defines a row of cells in a table. Those can be a mix of <td> and <th> elements"
}
],
"Forms": [
{
"key": "<button>",
"val": "Represents a clickable button"
},
{
"key": "<datalist>",
"val": "Contains a set of <option> elements that represent the values available for other controls"
},
{
"key": "<fieldset>",
"val": "Used to group several controls as well as labels (<label>) within a web form"
},
{
"key": "<form>",
"val": "Represents the parent element of a web form in a document section"
},
{
"key": "<input>",
"val": "Used to create interactive controls to accept data from the user"
},
{
"key": "<label>",
"val": "Represents a caption for an item in a user interface. A control element can be placed inside a <label> element, or by using the for attribute"
},
{
"key": "<legend>",
"val": "Represents a caption for the content of its parent <fieldset>"
},
{
"key": "<optgroup>",
"val": "Creates a grouping of options within a <select> element"
},
{
"key": "<option>",
"val": "Used to create a control representing an item within a <select>, an <optgroup> or a <datalist> element"
},
{
"key": "<output>",
"val": "Represents the result of a calculation or user action"
},
{
"key": "<select>",
"val": "Represents a control that presents a menu of options. The options within the menu are represented by <option> elements, which can be grouped by <optgroup> elements"
},
{
"key": "<textarea>",
"val": "Represents a multi-line plain text editing control"
}
],
"Embedded Content": [
{
"key": "<embed>",
"val": "Represents an integration point for an external application or interactive content"
},
{
"key": "<iframe>",
"val": "Represents a nested browsing context, effectively embedding another HTML page into the current page"
},
{
"key": "<object>",
"val": "Represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin"
},
{
"key": "<param>",
"val": "Defines parameters for <object>"
},
{
"key": "<source>",
"val": "An empty element used to specify multiple media resources for <picture>, <audio> and <video> elements"
}
],
"Scripting": [
{
"key": "<canvas>",
"val": "Used to draw graphics, photo compositions or animations via scripting, typically written in JavaScript"
},
{
"key": "<noscript>",
"val": "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"
},
{
"key": "<script>",
"val": "Used to embed or reference an executable script, typically written in JavaScript"
}
]
}
}