Hyperlinks with Font-Awesome Icons
Below are the Font-Awesome icons used throughout the DLA website, and what code is required to add them to a page. Add the code directly in-line with the HTML source code. For 508 / WCAG 2.1 compliance, icons that describe or clarify a link's action or destination must be part of the link itself, not placed outside of it.
Envelope
Place before link text, but within the hyperlink wrapper. The envelope icon is used with email addresses. If the space after the envelope icon makes your email address break to the next line, you can opt to remove the space.
<i class="fa fa-envelope" aria-hidden="true"></i>
Example:
<a href="mailto:example@example.mil"><i class="fa fa-envelope" aria-hidden="true"></i> example@example.mil</a>
example@example.mil
Phone
Place before link text, but within the hyperlink wrapper.
<i class="fa fa-phone" aria-hidden="true"></i>
Example:
<a href="tel:333333333"><i class="fa fa-phone" aria-hidden="true"></i>333333333</a>
333333333
External Link
Place after link text, but within the hyperlink wrapper.
<i class="fa fa-external-link" aria-hidden="true"></i>
Example:
<a href="https://example.com" target="_blank">Visit Website<i class="fa fa-external-link" aria-hidden="true"></i></a>
Visit Website
ID Badge
Place after link text, but within the hyperlink wrapper.
<i class="fa fa-id-badge" aria-hidden="true"></i>
Example:
<a href="/profile">View Directory<i class="fa fa-id-badge" aria-hidden="true"></i></a>
View Directory
Download
Place after link text, but within the hyperlink wrapper.
<i class="fa fa-download" aria-hidden="true"></i>
Example:
<a href="file.pdf" download>Download PDF<i class="fa fa-download" aria-hidden="true"></i></a>
Download PDF