In the web page we make, if we want it to allow more people to visit, the best way is to find your URL through search engines, so your web page needs to have keywords that can be recognized by search engines. Therefore, the <meta> tag in HTML is this function, which writes the key information of this page so that search engines can recognize it. Then let’s talk about how to use <meta>:
<head><title>mate</title><meta http-equiv=content-type content=application/xhtml+xml; charset=UTF-8 /><meta name=author content=Erwin Aligam - styleshout.com /><meta name=description content=Site Description Here /><meta name=keywords content=keywords, here /><meta name=robots content=index, follow, noarchive /><meta name=googlebot content=noarchive /></head>
1. Use of attributes
This is a simple example. This tag is written in <head> and will not be seen by users. This is more in terms of whether these functions are needed. The attributes of the tag mainly include http-equiv and name.
http-equiv is like the header file of http. It can send some useful information to the browser to help better display the content you want. The values of the http-equiv attribute can include content-type, expires, refresh, etc.
name This property is mainly used to describe web pages. The value of the name attribute can be: author, description, keywords, generator, etc.
2. Application of name attributeYou can see the columns above, such as keywords and descriptions, and the use of keywords and descriptions. Because according to the working principle of search engines, search engines will first exclude the robots from automatically searching keywords and descriptions in the page, add them to their own database, and then sort the website according to the density of keywords, so these two attributes are very important.
Note: The content content of keywords must be limited to 36 words.
The content of description must be limited to 76 words.
These two need to be used together
SummarizeThe above is a detailed explanation of the use of the <meta> tag in HTML introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to Wulin.com website!