Highlight: Write detailed and expressive link text that provides context.
Write detailed and expressive link text that describes where the reader will be guided to, and what the reader will see after following the link. Links, by themselves, should be coherent without the surrounding text.
Links can be of two forms:
- The exact text of the title, heading, or subheading you’re linking to. For more information about capitalizing such references, see Capitalization in references to titles and headings.
- A description of the linked document or page, with standard text capitalization.
For more information about link text, see Cross-references.
General guidelines for link text
- You can rewrite or rephrase a sentence to include a phrase to get well-articulated and clear link text.
- Don’t use a URL as link text. Instead, use the page title or a description of the page.
- Don’t use the phrase click here or this document. It impedes scannability and accessibility.
- Don’t force links to open in a new tab or window. Let the reader decide how to open links. If the link needs to open in a new tab or window, notify the reader that the link will open in a new tab or window. For more information, see Links to pages on a different domain or server.
- Use an external link icon to indicate that the link goes to a different domain or server. For more information, see Links to pages on a different domain or server.
- If the link downloads a file, explicitly mention it, and the type of file being downloaded.
- If you’re referencing a link with an abbreviation, include both the spelled-out term or phrase and the abbreviation in the link text. For example, link to WordPress Command Line Interface (WP-CLI), not WordPress Command Line Interface (WP-CLI).
Examples
<a href="">here</a>
.
<a href="">this page!</a>
.
<a href="">Word choice</a>
.
[here]()
.
[this page!]()
.
[Word choice]()
.
<a href="https://wordpressfoundation.org/trademark-policy/">https://wordpressfoundation.org/trademark-policy/</a>
.
<a href="https://wordpressfoundation.org/trademark-policy/">Trademark Policy for WordPress</a>
.
[https://wordpressfoundation.org/trademark-policy/](https://wordpressfoundation.org/trademark-policy/)
.
[Trademark Policy for WordPress](https://wordpressfoundation.org/trademark-policy/)
.
Punctuation with links
If you have punctuation immediately before or after a link, insert the punctuation outside the link tags where possible. For example, don’t include sentence ending punctuation such as a period inside link text.
Examples
<a href="https://wordpress.org/news/">News and Announcements.</a>
<a href="https://wordpress.org/news/">News and Announcements</a>
.
[News and Announcements.](https://wordpress.org/news/)
[News and Announcements](https://wordpress.org/news/)
.