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
|
---
title: <span>
slug: Web/HTML/Element/span
translation_of: Web/HTML/Element/span
---
<h2 id="Summary" name="Summary">Streszczenie</h2>
<p><strong>HTML <code><span></code> element</strong> <span lang="pl">jest podstawowym wbudowanym kontenerem dla frazowania treści, który z natury nie reprezentuje niczego. Może być używany do grupowania tekstu w celu stylizacji</span> (używa atrybutu <code>class</code> lub <code>id</code>), <span lang="pl">lub z powodu posiadania takich samych atrybutów, takich jak </span><code>lang</code>.<span lang="pl"> Powinien być używany tylko wtedy, gdy nie ma zastosowania żaden inny element semantyczny</span>. <code><span></code> <span lang="pl">jest bardzo podobny do elementu</span> <code><div></code>, lecz <code><div></code> jest <a href="/en-US/docs/HTML/Block-level_elements">elementem blokowym</a>, a <code><span></code><a href="/en-US/docs/HTML/Inline_elements"> - elementem liniowym</a>.</p>
<ul class="htmlelt">
<li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Kategorie treści</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>.</li>
<li><dfn>Dozwolone treści</dfn><a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">Phrasing content</a></li>
<li><dfn>Pomijanie tagów</dfn> {{no_tag_omission}}</li>
<li><dfn>Dozwolone elementy narzędne</dfn>Any element that accepts <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Phrasing_content">phrasing content</a>, or any element that accepts <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Flow_content">flow content</a>.</li>
<li><dfn>Interfejs DOM</dfn> {{domxref("HTMLSpanElement")}} (before HTML 5, the interface was {{domxref("HTMLElement")}}</li>
</ul>
<h2 id="Attributes" name="Attributes">Atrybuty</h2>
<p><span style="line-height: 21px;">Ten element obejmuje tylko </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">globalne atrybuty</a><span style="line-height: 21px;">.</span></p>
<h2 id="Example1" name="Example1">Przykład 1</h2>
<pre class="brush:html;gutter:false"><p><span>tekst</span></p></pre>
<h3 id="Result1" name="Result1">Wynik</h3>
<p><span>tekst</span></p>
<p> </p>
<h2 id="Example2" name="Example2">Przykład 2</h2>
<pre class="brush:html;gutter:false"><li><span>
<a href="profil.html" target="_blank">Zobacz mój profil</a>
</span></li>
</pre>
<h3 id="CSS" name="CSS">CSS:</h3>
<div class="note">
<p>li span {<br>
background: gold;<br>
}</p>
</div>
<h3 id="Result2" name="Result2">Wynik</h3>
<ul>
<li><span style="background: gold;"> <a href="portfolio.html">Zobacz mój profil</a></span></li>
</ul>
<h2 id="Dane_techniczne">Dane techniczne</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-span-element', '<span>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-span-element', '<span>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td>The DOM interface is now {{domxref("HTMLSpanElement")}}.</td>
</tr>
<tr>
<td>{{SpecName('HTML4.01', 'struct/global.html#edef-SPAN', '<span>')}}</td>
<td>{{Spec2('HTML4.01')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="See_also" name="See_also">Zgodność przeglądarek</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari (WebKit)</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Phone</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
</tr>
</tbody>
</table>
</div>
<h2 id="See_also" name="See_also">Zobacz także</h2>
<ul>
<li>HTML {{HTMLElement("div")}} element</li>
</ul>
<div>{{HTMLRef}}</div>
|