meta tag is a key tag in the head area of html tags. Its function is to describe the attributes of an HTML web page document and provide meta-information about the page, such as author, date and time, web page description, keywords, page refresh wait. The meta tag is located at the head of the document and contains no content; its attributes define the name/value pairs associated with the document.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
What is a meta tag? What is the function?
meta tag is a key tag in the head area of html tags. It is located between
and of the HTML document (some are not between and ). The information it provides, although not visible to the user, is the most basic meta-information of the document. The meta tag is used to describe the attributes of an HTML web document, such as author, date and time, web page description, keywords, page refresh, etc.
Function: Provide meta-information about the page, such as descriptions and keywords for search engines and update frequency.
Note: The tag is located at the head of the document and does not contain any content. The tag's properties define the name/value pairs associated with the document.
Note: The tag is always located inside the head element. Metadata is always passed in name/value pairs.
Note: Meta information is information about information. Meta information allows the server to provide information about the data sent. For example, http can improve the object language and objects sent, and meta information can also be used to implement conditional requests. and reporting transaction completion. The browser that receives the data can determine what content is sent by the server based on the metainformation, what data is expected, whether complete data is received, and whether there are errors in the process, so that the client can know the type of transmitted object.
meta tag attributes
##Attributes
Value
Description
charset
character_set
Specifies the character encoding of the HTML document.
content
text
Defines meta-information related to the http-equiv or name attribute.
meta标签提供关于HTML文档的元数据。元数据不会显示在页面上,但是对于机器是可读的。它可用于浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其他 web 服务。meta标签可用于缓存设置,还与SEO优化相关。SEO是指通过采用易于搜索引擎索引的合理手段,使网站各项基本要素适合搜索引擎检索原则并且对用户更友好(Search Engine Friendly),从而更容易被搜索引擎收录及优先排序从属于SEM(搜索引擎营销)。通俗理解是:通过总结搜索引擎的排名规律,对网站进行合理优化,使你的网站在百度和goog的排名提高,让搜索引擎给你带来客户。
The above is the detailed content of What is the function of meta tag. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn