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. This icon should be used for full phone numbers, not DSN numbers.
<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. This icon is used for links that land on URLs outside of dla.mil; not internal links. External links should always open in new tabs.
<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. This icon indicates that user access requires a CAC card. It is typically placed after an external link icon (no space between the two icons).
<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. This icon indicates downloading directly a file. If the file is a PDF this icon is not used. Instead use (PDF) and open the PDF in a new tab.
<i class="fa fa-download" aria-hidden="true"></i>
Example:
<a href="file.xls" download>Download Spreadsheet (XLS)<i class="fa fa-download" aria-hidden="true"></i></a>
Download Spreadsheet (XLS)