URLs in links

URLs in links to pages on the same server

When you're linking to another page on the same server, use a site-root-relative URL starting with /, even if you're linking to a page in the same directory as the page you're linking from.

Note: There are many valid linking styles; this guideline isn't a general statement about best practices for linking in all contexts, it's just our house style.

Links to sections in the same page

When you're linking to another section in the same page, let the reader know that the link takes you to a different section of the same page. Use a standard phrase to clue readers in if you use an in-page link.

Recommended: In this document, see URLs in links to pages on the same server.

Links to pages on a different server

  • Configure the link to open in new tab or window
  • If the server you're linking to supports HTTPS, start the URL with https. If the server doesn't support HTTPS, then start the URL with http.
  • Use an icon and configure the icon with CSS to indicate to that it opens in a new tab or window.

Recommended: For more information, see Links and Hypertext.

Envoyer des commentaires concernant…

Google Developer Documentation Style Guide
Google Developer Documentation Style Guide