Skip to content

Instantly share code, notes, and snippets.

@zhouxiaozhen-github
Created April 23, 2019 06:36
Show Gist options
  • Save zhouxiaozhen-github/3b73e0c8fb0281444b8420c672a8385e to your computer and use it in GitHub Desktop.
Save zhouxiaozhen-github/3b73e0c8fb0281444b8420c672a8385e to your computer and use it in GitHub Desktop.
head中的那些'SEO'
在非关键页面的head中加入,链接到关键地址(希望用户可以搜索到的地址)
<link rel="canonical" href="https://itf.minkabu.jp/login">
如果规范网页有移动版,请为其添加 rel="alternate" 链接,并使该链接指向此网页的移动版:
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.example.com/dresses/green-dresses">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment