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
158 lines (145 loc) · 6.17 KB
/
Copy pathindex.html
File metadata and controls
158 lines (145 loc) · 6.17 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
---
layout: single
elementName: base
---
<section id="base" class="element">
<header class="element-header">
<nav class="element-links">
<span>
Self-closing:
<strong>
Yes
</strong>
</span>
<a class="element-links-direct" href="{{site.url}}/element/base/" data-element-name="base" data-tooltip="Single page for this element">Permalink</a>
<a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="base">Share</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/base" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="element-name">
<a href="#base">
<span>#</span>
base
</a>
</h2>
<div class="element-description">
<p>Defines the base URL for all <strong>relative</strong> links of a web page. Should be placed in the <code><head></code>.</p>
</div>
</header>
<div id="base-example-0" class="example">
<p class="example-label">
<strong>Example:</strong>
<a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#base-example-0-code">Copy</a>
</p>
<article class="example-preview">
<div class="example-output"><base href="{{site.url}}">
<a href="/element/base">The HTML base element</a>
<!-- This will be an absolute link to http://htmlreference.io/element/base --></div>
<div id="base-example-0-code" class="example-code">{% highlight html %}<base href="{{site.url}}">
<a href="/element/base">The HTML base element</a>
<!-- This will be an absolute link to http://htmlreference.io/element/base -->{% endhighlight %}</div>
</article>
</div>
<article id="base-href" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="href">
href
</code>
</h3>
<div class="attribute-description">
<p>Defines the base target of all links of the web page.</p>
</div>
</header>
<div class="attribute-values">
<article id="base-href-siteurl" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy href="{{site.url}}"" data-clipboard-text="href="{{site.url}}"">
"{{site.url}}"
</code>
</h4>
<div class="value-description">
<p>You can pass an <strong>absolute</strong> URL.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><base href="{{site.url}}"></base></div>
</aside>
</article>
</div>
</article>
<article id="base-target" class="attribute">
<header class="attribute-header">
<h3 class="attribute-name">
<code class="tag" data-tooltip="Click to copy" data-clipboard-text="target">
target
</code>
</h3>
<div class="attribute-description">
<p>Defines in which tab or window the links of the web pages will show up.</p>
</div>
</header>
<div class="attribute-values">
<article id="base-target-_blank" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_blank"" data-clipboard-text="target="_blank"">
"_blank"
</code>
</h4>
<div class="value-description">
<p>Opens in a new browsing context, which is usually a <strong>new tab</strong>.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><base href="{{site.url}}" target="_blank"></base></div>
</aside>
</article>
<article id="base-target-_self" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_self"" data-clipboard-text="target="_self"">
"_self"
</code>
</h4>
<div class="value-description">
<p>Opens in the current tab.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><base href="{{site.url}}" target="_self"></base></div>
</aside>
</article>
<article id="base-target-_parent" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_parent"" data-clipboard-text="target="_parent"">
"_parent"
</code>
</h4>
<div class="value-description">
<p>Opens in the parent browsing context, or <code>_self</code> is there is none.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><base href="{{site.url}}" target="_parent"></base></div>
</aside>
</article>
<article id="base-target-_top" class="value">
<header class="value-header">
<h4 class="value-name">
<code class="tag" data-tooltip="Click to copy target="_top"" data-clipboard-text="target="_top"">
"_top"
</code>
</h4>
<div class="value-description">
<p>Opens in the top browsing context, or <code>_self</code> is there is none.</p>
</div>
</header>
<aside class="value-preview">
<div class="value-output"><base href="{{site.url}}" target="_top"></base></div>
</aside>
</article>
</div>
</article>
</section>