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:
网友评论