Used to create a hyperlink to another location.
This component has only the default state.
-
Confirm that you have references to Fabric's CSS on your page:
<head> <link rel="stylesheet" href="fabric.min.css"> <link rel="stylesheet" href="fabric.components.min.css"> </head>
-
Copy the HTML from one of the samples above into your page. For example:
<div class="ms-font-m"> <a class="ms-Link" href="#" title="More info about Example Link">Example Link</a> </div>
-
Replace the sample text with the text of your link.
This component has no dependencies on other components.
Use the title
attribute to provide additional text describing the link, if the link text itself is not descriptive enough.
The Link inherits the font family, size, and weight of its parent element. This is why we have placed it within .ms-font-m
wrapper in the sample above.