Skip to content

20.前端需要注意哪些SEO #20

@webVueBlog

Description

@webVueBlog
Member
  1. 合理的title、description、keywords:搜索对着三项的权重逐个减小,title值强调重点即可,重要关键词出现不要超过2次,而且要靠前,不同页面title要有所不同;description把页面内容高度概括,长度合适,不可过分堆砌关键词,不同页面description有所不同;keywords列举出重要关键词即可

  2. 语义化的HTML代码,符合W3C规范:语义化代码让搜索引擎容易理解网页

  3. 重要内容HTML代码放在最前:搜索引擎抓取HTML顺序是从上到下,有的搜索引擎对抓取长度有限制,保证重要内容一定会被抓取

  4. 重要内容不要用js输出:爬虫不会执行js获取内容

  5. 少用iframe:搜索引擎不会抓取iframe中的内容

  6. 非装饰性图片必须加alt

  7. 提高网站速度:网站速度是搜索引擎排序的一个重要指标

Activity

webVueBlog

webVueBlog commented on Mar 10, 2020

@webVueBlog
MemberAuthor

Reasonable title, description and keywords: the weight of search on the three items is reduced one by one, the title value can be emphasized, important keywords should not appear more than 2 times, and to the front, the title of different pages should be different; Description the page content is highly summarized, the length is appropriate, can not be overpiled with keywords, different pages description is different; Keywords can enumerate the important keywords

Semantic HTML code, W3C compliant: semantic code makes web pages easy for search engines to understand

Important content HTML code in the first place: search engines to grab the HTML order from the top to the bottom, some search engines to grab the length of the limit, to ensure that important content will be captured

Important content do not use js output: crawlers do not perform js fetching of content

Use less iframe: search engines don't crawl content in an iframe

Non-decorative images must be Alt

Improve website speed: website speed is an important index of search engine ranking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @webVueBlog

        Issue actions

          20.前端需要注意哪些SEO · Issue #20 · weekCodeing/interview-answe