This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12346|Reply: 0

[HTML/HTML5] [html] Lesson 2, about <head>the detailed introduction

[Copy link]
Posted on 10/19/2014 12:12:30 PM | | |


head: Chinese means head, top, upper paragraph

The function of head on a web page is:

The head tag is a built-in tag contained in the HEAD part of a web page, which is generally used to indicate the scripting language used and the method used when transmitting the web page.

<head> Tags are used to define the head of a document, and it is a container for all header elements. <head> element in the script, indicate where the browser finds the stylesheet, provide meta information, and more. The header of the document describes various properties and information about the document, including the title of the document, its position on the web, and how it relates to other documents. The vast majority of documents contain data that is not actually displayed to readers as content.



Generally, head tags are<base>, <link>, , <meta><script><style>, , and <title>
<base> Tags specify a default address or default destination for all links on a page.
<link> Labels define the relationship of a document to external resources. For example, some style files that link externally, etc
<meta> element provides meta-information about the page, such as descriptions and keywords for search engines and update frequency. Set up automatic web page refresh, etc
<script> tags are used to define client-side scripts, such as JavaScript.
<style> Tags are used to define style information for HTML documents.
<title> element defines the title of a web document, which is the text that appears on the browser title.


The above keywords such as title, link, and meta need to be written in the head, which can be understood as the head is the attribute that defines a web page.




Previous:The first lesson, the most basic grammar
Next:Lesson 3, detailed introduction and use of &lt; body &gt;
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com