forked from jgthms/html-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
256 lines (236 loc) · 10.7 KB
/
Copy pathindex.html
File metadata and controls
256 lines (236 loc) · 10.7 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
---
layout: single
elementName: meta
---
<section id="meta" class="element">
<header class="element-header">
<nav class="element-links">
<span>
Self-closing:
<strong>
No
</strong>
</span>
<a class="element-links-direct" href="{{site.url}}/element/meta/" data-element-name="meta" data-tooltip="Single page for this element">Permalink</a>
<a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="meta">Share</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/meta" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="element-name">
<a href="#meta">
<span>#</span>
meta
</a>
</h2>
<div class="element-description">
<p>Defines <strong>metadata</strong> attached to a web page.</p>
</div>
</header>
<div id="meta-example-0" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#meta-example-0-code">Copy</a>
</p>
<article class="example-preview">
<div id="meta-example-0-code" class="example-code">{% highlight html %}<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff">{% endhighlight %}</div>
</article>
</div>
<div id="meta-example-1" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#meta-example-1-code">Copy</a>
</p>
<article class="example-preview">
<div id="meta-example-1-code" class="example-code">{% highlight html %}<!-- Refresh the page every 5 seconds -->
<meta http-equiv="refresh" content="5">{% endhighlight %}</div>
</article>
</div>
<div id="meta-example-2" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#meta-example-2-code">Copy</a>
</p>
<article class="example-preview">
<div id="meta-example-2-code" class="example-code">{% highlight html %}<!-- Redirect instantly to http://cssreference.io -->
<meta http-equiv="refresh" content="0; url=http://cssreference.io">{% endhighlight %}</div>
</article>
</div>
<article id="meta-charset" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="charset">
charset
</code>
</h3>
<div class="attribute-description">
<p>Defines the character encoding for the whole web page.</p>
</div>
</header>
<div class="attribute-values">
<article id="meta-charset-utf-8" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy charset="UTF-8"" data-clipboard-text="charset="UTF-8"">
"UTF-8"
</code>
</h4>
<div class="value-description">
<p>The value must be a valid <a href="https://www.iana.org/assignments/character-sets/character-sets.xhtml">character set</a>.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta charset="UTF-8"></meta></div>
</aside>
</article>
</div>
</article>
<article id="meta-http-equiv" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="http-equiv">
http-equiv
</code>
</h3>
<div class="attribute-description">
<p>Defines meta rules for the web page.</p>
</div>
</header>
<div class="attribute-values">
<article id="meta-http-equiv-content-security-policy" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy http-equiv="Content-Security-Policy"" data-clipboard-text="http-equiv="Content-Security-Policy"">
"Content-Security-Policy"
</code>
</h4>
<div class="value-description">
<p>Defines a link to a web page's <a href="https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives">content policies</a>.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta http-equiv="Content-Security-Policy"></meta></div>
</aside>
</article>
<article id="meta-http-equiv-refresh" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy http-equiv="refresh"" data-clipboard-text="http-equiv="refresh"">
"refresh"
</code>
</h4>
<div class="value-description">
<p>Allows to refresh the web page every N seconds, or even redirect to another URL.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta http-equiv="refresh"></meta></div>
</aside>
</article>
<article id="meta-http-equiv-x-ua-compatible" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy http-equiv="X-UA-Compatible"" data-clipboard-text="http-equiv="X-UA-Compatible"">
"X-UA-Compatible"
</code>
</h4>
<div class="value-description">
<p>Defines which Internet Explorer verison the web page should be rendered as.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta http-equiv="X-UA-Compatible"></meta></div>
</aside>
</article>
</div>
</article>
<article id="meta-name" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="name">
name
</code>
</h3>
<div class="attribute-description">
<p>Defines additional information attached to the web page.</p>
</div>
</header>
<div class="attribute-values">
<article id="meta-name-viewport" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy name="viewport"" data-clipboard-text="name="viewport"">
"viewport"
</code>
</h4>
<div class="value-description">
<p>Defines dimension and scaling rules for the viewport.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta name="viewport"></meta></div>
</aside>
</article>
<article id="meta-name-theme-color" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy name="theme-color"" data-clipboard-text="name="theme-color"">
"theme-color"
</code>
</h4>
<div class="value-description">
<p>Defines a theme color which can be used by the browser or the operating system.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta name="theme-color"></meta></div>
</aside>
</article>
</div>
</article>
<article id="meta-content" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="content">
content
</code>
</h3>
<div class="attribute-description">
<p>Defines the content of the metadata. This varies according to the <code>name</code> or <code>http-equiv</code> value.</p>
</div>
</header>
<div class="attribute-values">
<article id="meta-content-widthdevice-width-initial-scale1" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy content="width=device-width, initial-scale=1"" data-clipboard-text="content="width=device-width, initial-scale=1"">
"width=device-width, initial-scale=1"
</code>
</h4>
<div class="value-description">
<p>For the <code>viewport</code> metadata, you can specify the width and initial scale of the web page.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta content="width=device-width, initial-scale=1"></meta></div>
</aside>
</article>
<article id="meta-content-2-urlhttpcssreferenceio" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy content="2; url=http://cssreference.io"" data-clipboard-text="content="2; url=http://cssreference.io"">
"2; url=http://cssreference.io"
</code>
</h4>
<div class="value-description">
<p>For the <code>refresh</code> metadata, you can specify how many seconds to wait before redirecting to another URL.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><meta content="2; url=http://cssreference.io"></meta></div>
</aside>
</article>
</div>
</article>
</section>