HTML header, html header code

Source: Internet
Author: User
Tags html header

HTML header, html header code

Summary HTML header Elements
HTMLElement

An element is a container of all header elements.The element in can contain scripts to indicate where the browser can find the style sheet, provide metadata, and so on.
The following labels can be added to the head section:<title>、<base>、<link>、<meta>、<script>And<style>.

HTML<title>Element
<title>The label defines the title of the document.
The title element is required in all HTML/XHTML documents.
The title element can:

  • Define the title in the browser toolbar
  • Provide the title displayed when the page is added to favorites
  • Page title displayed in search engine results

A simplified HTML document:

<!DOCTYPE html>

HTML<base>Element
<base>The tag specifies the default address or target for all links on the page ):

HTML<link>Element
<link>Tags define the relationship between documents and external resources.
<link>Tags are most commonly used to connect a style sheet:

HTML<meta>Element
Metadata (metadata) is information about data.
<meta>Tags provide metadata about HTML documents. Metadata is not displayed on the page, but is readable to machines.
In typical cases, meta elements are used to specify the page description, keywords, Document Author, last modification time, and other metadata.
<meta>The label is always in the head element.
Metadata can be used in browsers (how to display content or reload pages), search engines (keywords), or other web Services.
Keywords for search engines
Some search engines use the name and content attributes of the meta element to index your page.
The following meta Element Definition page description:

<meta name="description" content="Free Web tutorials on HTML, CSS, XML" />

The following meta element defines the keywords of the page:

<meta name="keywords" content="HTML, CSS, XML" />

The name and content attributes describe the content of the page.

HTML<script>Element
<script>Tags are used to define client scripts, such as JavaScript.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.