Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 745 Bytes

link-has-href.md

File metadata and controls

27 lines (18 loc) · 745 Bytes

Link Has Href

Rule Details

An <a> element that has an href attribute represents a hyperlink (a hypertext anchor) labeled by its contents. Links, <a> elements, should go somewhere, you probably want to use a <button> instead.

Resources

Examples

Incorrect code for this rule 👎

<!-- incorrect -->
<a>Go to GitHub</a>

Correct code for this rule 👍

<!-- correct -->
<a href='https://github.com/'>Go to GitHub</a>