5th days: other settings in the head area

Source: Internet
Author: User
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.

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.