11
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SEO上で重要なHTML要素のXPathのまとめ

Posted at

これは何?

SEO上で重要なHTML要素のXPathを並べました。

どんな時に使うの?

SEO施策の実装確認を効率化するために簡易クローラーを運用するような時に使うかと思います。

一覧

(※対象のページのHTMLの構成によってはこの限りではないです)

titleタグ

//title

meta description

//meta[@name='description']/@content

alternate (主にhref langを想定)

/html/head/link[@rel='alternate']/@href

canonical

/html/head/link[@rel='canonical']/@href

robots(主にnoindexを想定)

//meta[@name='robots']/@content

prev

/html/head/link[@rel='prev']/@href

next

/html/head/link[@rel='next']/@href

11
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?