Using Web standards to build a station day 5th: Other settings for the head area

Source: Internet
Author: User
Tags root directory
Web|web standard These techniques are mainly about META tag settings, in fact, not in line with the Web standards, as long as the note in the final "/" off the label can be, but since it is an introductory tutorial, write more detail.
Favorites Small Icon
If you add this site to your Favorites folder, you can see that the IE icon before the Favorites URL becomes a special icon for this site. To achieve this effect is very simple, first make a 16x16 icon, named Favicon.ico, placed in the root directory. Then embed the following code in 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 to be prepared for the search engine
The code is as follows, replaced by your own site content can be:

Allows search of all links within the robot search station. If you want some pages not to be searched, recommend using the Robots.txt method
<meta content= "All" name= "robots"/>
Set Site author information
<meta name= "Author" content= "ajie@netease.com, Atzie"/>
Set up site copyright information
<meta name= "Copyright" content= "www.w3cn.org, free copyright, arbitrary reprint"/>
Brief introduction to the site (recommended)
<meta name= "description" content= "new Web Designer." Web Standard tutorial site, promoting the application of Web standards in China "/>
Keywords for the site (recommended)
<meta content= "Designing, with, web, standards, XHTML, CSS, graphic, design, layout, usability, ccessibility, the consortium, W3, W3CN, Ajie "name=" keywords "/>
Introduce so much first. Additional explanation, the front spent 5 section is the head area of the code, the actual page content is not mentioned, oh, don't worry, in fact, head area is very important, look at a page head code can know whether the designer is professional enough.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.