Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

The HTML head

HTML


View online example

- defines the title of the HTML document</a><br /> Use the <title> tag to define the document's title</p> <p><a href="/try/try.php?filename=tryhtml_base"><base> - Defines the URL of all links</a><br /> Use <base> Defines the default link target address for all links on the page.</p> <p><a href="/try/try.php?filename=tryhtml_meta"><meta> - Provides the meta tags of the HTML document</a><br /> Use <meta> The element describes the HTML document's description, keywords, author, character set, and so on.</p> <hr /> <h2>HTML <head> element</h2> <head> The element contains all the head tag elements. In <head>You can insert scripts, style files (CSS), and various meta information into the element. <p>The element tags that can be added in the head area are: <title>, <style>, <meta>, <link>, <script>, <noscript> and <base>。</p> <hr /> <h2>HTML <title> element</h2> <title> The tag defines the title of different documents. <title> is required in HTML/XHTML documents. <title> element: <ul> <li>Defines the title of the browser toolbar</li> <li>The title shown when the page is added to favorites</li> <li>The title displayed on search engine results pages</li> </ul> <p>A simple HTML document:</p> <h2>Example</h2> <pre><code><!DOCTYPE html></code></pre><blockquote></blockquote><pre><code><html> <head> <meta charset="utf-8"> <title></code></pre><p>Document Title</p> <pre><code></ title </ head < body</code></pre><p>Document content...</p> <pre><code></ body </ html < head < base href = " http://www.runoob.com/images/ " target = " _blank " </ head < head < link rel = " stylesheet " type = " text/css " href = " mystyle.css " head</code></pre> </main> <footer>Source: <a href="https://www.runoob.com/html/html-head.html" rel="nofollow noopener">Runoob Tutorial</a> · Original modified: 2022-09-19T09:02:32 · This copy is for personal offline learning only; public distribution is prohibited.</footer> </body> </html>