aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/html/element/head
diff options
context:
space:
mode:
Diffstat (limited to 'files/pl/web/html/element/head')
-rw-r--r--files/pl/web/html/element/head/index.html130
1 files changed, 130 insertions, 0 deletions
diff --git a/files/pl/web/html/element/head/index.html b/files/pl/web/html/element/head/index.html
new file mode 100644
index 0000000000..aa1c44454f
--- /dev/null
+++ b/files/pl/web/html/element/head/index.html
@@ -0,0 +1,130 @@
+---
+title: '<head>: Element metadanych dokumentu (Nagłówek)'
+slug: Web/HTML/Element/head
+tags:
+ - Element
+ - HTML
+ - HTML metadane dokumentu
+ - 'HTML:Metadane zawartość'
+ - Reference
+ - Web
+translation_of: Web/HTML/Element/head
+---
+<div>{{HTMLRef}}</div>
+
+<p><strong>Element</strong> <strong>HTML <code>&lt;head&gt;</code></strong> zawiera maszynowo odczytywane informacje ({{glossary("metadata", "metadane")}}) o dokumencie, takie jak <a href="https://wiki.developer.mozilla.org/pl/docs/Web/HTML/Element/title">tytuł</a>, <a href="https://wiki.developer.mozilla.org/pl/docs/Web/HTML/Element/script">skrypty</a> i <a href="https://wiki.developer.mozilla.org/pl/docs/Web/HTML/Element/style">arkusze stylów</a>.</p>
+
+<div class="blockIndicator note">
+<p><strong>Uwaga:</strong> <code>&lt;head&gt;</code> posiada przede wszystkim informacje do przetwarzania maszynowego, a nie do odczytywania przez ludzi. Informacje widoczne dla człowieka, takie jak nagłówki najwyższego poziomu i wymienieni autorzy, znajdują się w elemencie {{HTMLElement("header")}}.</p>
+</div>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th><a href="https://developer.mozilla.org/pl/docs/Web/Guide/HTML/Content_categories">Kategorie treści</a></th>
+ <td>Brak.</td>
+ </tr>
+ <tr>
+ <th>Dozwolona zawartość</th>
+ <td>
+ <p>Jeśli dokument jest dokumentem {{htmlattrxref("srcdoc", "iframe")}} w {{HTMLElement("iframe")}}, lub jeśli informacja tytułowa jest dostępna z protokołu wyższego poziomu (np. temat w e-mailu HTML), zero lub więcej elementów zawartości metadanych.</p>
+
+ <p><br>
+ W przeciwnym wypadku, jeden lub więcej elementów zawartości metadanych, gdzie dokładnie jeden jest elementem {{HTMLElement("title")}}.</p>
+ </td>
+ </tr>
+ <tr>
+ <th>Pominięcie znacznika</th>
+ <td>Znacznik startowy może zostać pominięty, jeśli pierwszą rzeczą wewnątrz elementu <code>&lt;head&gt;</code> jest element.<br>
+ Znacznik końcowy może zostać pominięty, jeśli pierwszą rzeczą następującą po elemencie <code>&lt;head&gt;</code> nie jest znak spacji lub komentarz.</td>
+ </tr>
+ <tr>
+ <th>Dozwoleni rodzice</th>
+ <td>Element {{HTMLElement("html")}}, jako jego pierwsze dziecko.</td>
+ </tr>
+ <tr>
+ <th>Dozwolone role ARIA</th>
+ <td>Brak</td>
+ </tr>
+ <tr>
+ <th>Interfejs DOM</th>
+ <td>{{domxref("HTMLHeadElement")}}</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Atrybuty">Atrybuty</h2>
+
+<p>Ten element uwzględnia <a href="https://developer.mozilla.org/pl/docs/Web/HTML/Global_attributes">atrybuty globalne</a>.</p>
+
+<dl>
+ <dt>{{htmlattrdef("profile")}} {{obsolete_inline}}</dt>
+ <dd>URI jednego lub więcej profili metadanych, oddzielone białym znakiem.</dd>
+</dl>
+
+<h2 id="Przykład">Przykład</h2>
+
+<pre class="brush: html">&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+ &lt;title&gt;Tytuł dokumentu&lt;/title&gt;
+ &lt;/head&gt;
+&lt;/html&gt;
+</pre>
+
+<h2 id="Uwagi">Uwagi</h2>
+
+<p>Nowoczesne, zgodne z HTML5 przeglądarki automatycznie tworzą element <code>&lt;head&gt;</code>, jeśli tagi są pomijane w znaczniku. <a class="external" href="https://www.stevesouders.com/blog/2010/05/12/autohead-my-first-browserscope-user-test/">Takie zachowanie nie może być zagwarantowane w starych przeglądarkach</a>.</p>
+
+<h2 id="Specyfikacje">Specyfikacje</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specyfikacja</th>
+ <th scope="col">Status</th>
+ <th scope="col">Komentarz</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', 'semantics.html#the-head-element', '&lt;head&gt;')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>Bez zmian w stosunku do najnowszej wersji</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'document-metadata.html#the-head-element', '&lt;head&gt;')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td>Przestarzały <code>profile</code></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML4.01', 'struct/global.html#h-7.4.1', '&lt;head&gt;')}}</td>
+ <td>{{Spec2('HTML4.01')}}</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Kompatybilność_z_przeglądarką">Kompatybilność z przeglądarką</h2>
+
+<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+
+<p>{{Compat("html.elements.head")}}</p>
+
+<h2 id="Zobacz_także">Zobacz także</h2>
+
+<ul>
+ <li>Elementy, które mogą być używane wewnątrz <code>&lt;head&gt;</code>:
+
+ <ul>
+ <li>{{HTMLElement("title")}}</li>
+ <li>{{HTMLElement("base")}}</li>
+ <li>{{HTMLElement("link")}}</li>
+ <li>{{HTMLElement("style")}}</li>
+ <li>{{HTMLElement("meta")}}</li>
+ <li>{{HTMLElement("script")}}</li>
+ <li>{{HTMLElement("noscript")}}</li>
+ <li>{{HTMLElement("template")}}</li>
+ </ul>
+ </li>
+</ul>