Understanding and knowledge of web standards and websites

Source: Internet
Author: User

When writing code, you should pay attention to:

1. Label closure
2. Label lowercase
3. Cannot be nested arbitrarily

Increase the chance of being searched by search engines:

The name variable in mate "where keywords and description are particularly important"

Meta name= "Kyewords" lang= "EN" content= "Vacation,greece,sunshine"

Meta name= "Description" content= "Overview of your Page"

Meta name= "Robots" content= "all| none| Index| Noindex| follow| Nofollow "
[All: The file will be retrieved and the link on the page can be queried;
None: The file will not be retrieved and the link on the page cannot be queried; (and "Noindex, no follow" play the same role)
Index: file will be retrieved; (Let Robot/spider log in)
Follow: Links on the page can be queried;
NOINDEX: The file will not be retrieved, but the link on the page can be queried; (Do not let Robot/spider log in)
Nofollow: The file will not be retrieved and the link on the page can be queried. (Do not let the Robot/spider follow this page to look down)]

Meta name= "Author" content= "Zhang San, [email protected]"

Meta name= "Copyright" content= "This page is owned by Zerospace. All Rights Reserved "

Meta name= "Generator" content= "pcdata| Frontpage| "

META name= "Revisit-after" content= "7 Days"

Increase page load speed

1. Write JavaScript and CSS to external documents
2. Remove unnecessary spaces and comments
3. Try not to use the table layout, try to use a table layout that is not nested
4. Specify the size of the image and table
5. Try not to use images instead of text (e.g. in the navigation bar)
6. Delay the script loading and place the script at the bottom of the page
7. Try to use PNG format images
8. Check for lost files and images

This article transferred from: http://blog.csdn.net/yoany/article/details/46679385

Understanding and knowledge of web standards and websites

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.