Load the matching LaTeX package
Add \usepackage{fontawesome5} to the preamble in a project where the package is installed. The package manual describes its Font Awesome 5 icon set. Look up the desired icon in that manual, since a name from a newer web catalog can be unavailable in your TeX package.
Choose an icon command and keep the adjacent words
The manual lists both \faCamera and \faIcon{camera}. Try one beside the word Gallery in a short paragraph. Inspect the baseline and white space around the icon. Keep the visible label when readers need the icon’s meaning or the PDF will be used outside the original layout.
Compile a narrow and a wide example
Compare a heading and a narrow contact line in the output. If the command fails, check the installed package and spelling before changing the document’s text font. See the LaTeX font-family guide for the separate main-font workflow and the homepage text styles for an independent caption.
Your questions, answered.
Can I paste an HTML Font Awesome class into LaTeX?
Use a command documented by the installed LaTeX package. HTML classes belong to a web setup.
Why is an icon absent from the package manual?
Check which Font Awesome release and style the package supports. The current web catalog can differ.
Sources & background
Sources supporting this page’s explanations. Practical examples are our editorial suggestions.