タグ

linkに関するsh19eのブックマーク (3)

  • Are your Anchor Links Accessible?

    Are your Anchor Links Accessible?December 14th, 202012 mins 📖 📖 📖 📖 📖 📖 Room for growth 🌱accessibility create ssg One day I decided I wanted to add anchor links to each of the sections in my blog posts. Over the past few months, I'd seen these links on a lot of pages—from official documentation pages to smaller blog posts. I find them really useful for sharing sections of pages with other p

    Are your Anchor Links Accessible?
  • target="_blank" で開くリンクには rel="noopener" をつける - Qiita

    The performance benefits of rel=noopener - JakeArchibald.com より target="_blank" でリンクを開く場合は、rel="noopener"をつけておくのが良い。 管理画面などでは rel="noopener noreferrer"というかたちでnoreferrerをつけるとさらに良いかもしれない(参考:http://qiita.com/wakaba@github/items/707d72f97f2862cd8000 ) target="_blank" で開いたWindowは、 window.opener を使って親のWindowを操作することができる。つまりtarget="_blank"で開いたサイトで任意の操作ができてしまうことになるけど、Same origin の仕組みが働く。ので、Same originではない場

    target="_blank" で開くリンクには rel="noopener" をつける - Qiita
  • linkのrelの種類と効能等

    linkのrelの種類と効能等 Web Componentsの流れでHTMLImportsをよく見るようになったり、パフォーマンス周りでプリフェッチ系の属性が<link>で指定するようになったりしている今日この頃。気になったのでW3Cの Links in HTML documents を眺めたメモ。 Links in HTML documents そもそもリンクとは一体何なのか? Webにおけるリンクは、<a>と<link>の2種類がある。それらには、 Webのあらゆるリソースの場所 を示す役割が与えられている。つまり、hrefで指定しているURLがそれにあたる。そのURLの振る舞いの種類については、relやrevで記述する、と。revって削除されるんだっけ? <img>や<form>といったように、リソースへのリンクはその他のHTML要素でも行う。が、<link>についてはドキュメントの

    linkのrelの種類と効能等
  • 1