Document directory
- Favorites icons
- Content for search engines
These skills mainly focus on meta tag settings. In fact, they have little to do with compliance with web standards. You only need to add "/" at the end to close the tag, but since it is an introductory tutorial, let's write it in detail.
Favorites icons
If you add this site to favorites, you can see that the IE icon before the favorites site becomes a Special icon on this site. To achieve this effect, you must first create a 16x16 icon named favicon. ico and put 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:
- Allows you to search all links in a robot search site. If you want some pages not to be searched, the robots.txt method is recommended.
<Meta content = "all" name = "robots"/>
- Set site author information
<Meta name = "author" content = "ajie@netease.com, "/>
- Set site copyright information
<Meta name = "Copyright" content = "www.w3cn.org"/>
- Brief Introduction to the site (recommended)
<Meta name = "description" content = "New web designer. The web Standard tutorial site promotes 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 "/>
So much. I have spent five sections on the head area code. The actual page content is not mentioned yet. Don't worry. In fact, the head area is very important, check the head code of a page to see if the designer is professional enough.