SEO optimization Popular point is to make the site in the major search engines easier to be searched, that is, to improve the search ranking, thereby improving the site traffic a technical means
When writing web pages, there are several points to note in order to make it easier for web crawlers to search for pages:
HTML semantics
It's strange to just touch web front-end development, since HTML tags can change its built-in properties through CSS, why so many tags exist
<div>,
And now, with the deepening of the front end, it is gradually understood its usefulness
Semantic HTML makes it easier for developers to understand the meaning and focus of each piece of code, as well as help with SEO optimization
In the search process, the web crawler will focus on the search by HTML semantics,
Standard Web-compliant HTML allows web crawlers to better understand, thereby improving the level of SEO optimization site.
In the http://www.w3school.com.cn/html article, there is a description of each label's semantics, the need for students can pay attention to the next.
Ifame
For front-end development, Ifame has been a long time ago, there should be few front-end developers to use Ifame at this stage (of course, in the background frame building will still be used)
Ifame reasons for exiting the front-end stage I think it should be a bit, the Web uses Ifame,ifame content crawler is not searchable, so for Ifame page basically does not exist SEO optimization
It is recommended to use less in front-end development, (background development for this to not mind, back-Office system for SEO optimization does not need it)
JS Output
For some important text or content on the site is best not to use the JS output to generate HTML display, because the web crawler to JS only blind, so with JS output too much content
Will let the site's SEO optimization level down (I still like to use JS to output HTML, is limited to ~ ~ ~)
ALT attribute
The ALT attribute is generally applied to the tag, and when the picture does not load properly, the value of the ALT attribute setting is displayed as the explanatory text
For front-end developers always feel that this attribute is a bit of a chicken, because in the development process is basically not see the effect of this property (PS: In the development process, the general situation will not be loaded picture failure situation)
However, note that the addition of the attribute is to be added to, the web crawler is not able to identify the picture, no matter how cool your pictures, in the web crawler in the eyes is only a code, and
The alt attribute of a tag is a sign of a picture in a web crawler.
<title>
<meta name= "description" content= "..." >
<meta name= "keywords" content= "..." >
Reasonable use of these three SEO also has a great help, the specific use of the method here is not much to say, interested students can search the Internet
On the point of attention of SEO optimization in web front-end development process