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