Home > Article > Web Front-end > Day 5 of building a website using web standards: other settings in the head area
These tips are mainly about setting meta tags. In fact, they have little to do with complying with web standards. Just pay attention to adding "/" at the end to close the tag. But since it is an introductory tutorial, let's write it in more detail.
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:
Content prepared for search engines
The code is as follows, replace it with the content of your own site Just do it:
Allow search robots to search all links in the site. If you want certain pages not to be searched, it is recommended to use the robots.txt method
< class=code>
Set site author information
Set site copyright information
A brief introduction to the site (recommended)
Site keywords (recommended)
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? The above is the fifth day of website building using Web standards: other settings in the head area. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!