Favorites icon
If you add this site to your favorites, you can see that the IE icon before the favorites URL changes to a special icon for this site. To achieve this effect is very simple, first make a 16x16 icon, name it favicon.ico, and place it in the root directory. Then embed the following code into the head area:
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
Content for search engines
The code is as follows, just replace it with the content of your own site:
Allow search bots to search all links on the site. If you want certain pages not to be searched, it is recommended to use the robots.txt method
<meta content="all" name="robots" />
Set site author information
<meta name="author" content=" [email protected] ,阿杰" />
Set site copyright information
<meta name="Copyright" content=" www.w3cn.org , free copyright, any reproduction" />
A brief introduction to the site (recommended)
<meta name="description" content="New web designer. Web standards tutorial site, promoting the application of web standards in China" />
Site keywords (recommended)
<meta content="designing, with, web, standards, xhtml, css, graphic, design, layout, usability, ccessibility, w3c, w3, w3cn, ajie" name="keywords" />
Let me introduce this much first. Supplementary explanation, the previous five sections were all about the code of the head area, and the actual page content has not been mentioned at all. Haha, don’t worry, in fact, the head area is very important. You can know the designer by looking at the head code of a page. Is it professional enough?