HTML Head

作者: 春暖花开奇奇乐乐 | 来源:发表于2018-11-20 18:01 被阅读9次

The HTML <head> Element

The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag.

HTML metadata is data about the HTML document. Metadata is not displayed.

Metadata typically define the document title, character set, styles, links, scripts, and other meta information.

The following tags describe metadata: <title>, <style>, <meta>, <link>, <script>, and <base>.

HTML head Elements

<head> Defines information about the document

<title> Defines the title of a document; defines a title in the browser tab; provides a title for the page when it is added to favorites; displays a title for the page in search engine results

<base> Defines a default address or a default target for all links on a page

<link> Defines the relationship between a document and an external resource; The <link> element is used to link to external style sheets.

<meta> Defines metadata about an HTML document; The <meta> element is used to specify which character set is used, page description, keywords, author, and other metadata. Metadata is used by browsers (how to display content), by search engines (keywords), and other web services.

<script> Defines a client-side script; The <script> element is used to define client-side JavaScripts.

<style> Defines style information for a document; The <style> element is used to define style information for a single HTML page.

<base> The <base> element specifies the base URL and base target for all relative URLs in a page:

相关文章

网友评论

      本文标题:HTML Head

      本文链接:https://www.haomeiwen.com/subject/ykbxqqtx.html