Front-end development and SEO

Source: Internet
Author: User

In order to make the site in the search engine ranked in front, as a front-end engineer better understand a little SEO knowledge, in the writing of Web page code need to pay attention to the following points:

1, the link in a tag needs to set rel= "nofollow", the hint that spiders do not crawl, all the <a> need to set the title, so that the spider better understand
2, <br/> only for text wrapping, other lines can be used <p><br/></p>
3, label with ALT attribute, when the picture can not display the text prompt, but also can let spiders know the picture
4, try to use less IFRAME
5, important content do not use JS output
6, for temporarily do not need to display the element should use the Z-index attribute instead of Display:none; Such code, because the spider will filter the display property is the content of none.
7, the website structure is flat tree type, the directory structure should not be too deep, each page from the homepage most click 3 times, too deep is not conducive to search engine crawl.
8, each page to appear only once H1 label, H2~H6 label can be multiple times, this is to aggravate the weight of the H1 label

Follow up to update ...

Front-end development and SEO

Related Article

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.