Two approaches for adding dashicons in HTML.
A Cheerful Headline
<h2 class="dashicons-before dashicons-smiley">A Cheerful Headline</h2>
Point That Way
<h2>Point That Way<span class="dashicons dashicons-arrow-right"></span></h2>
Obviously, CSS would need to be added to make the icons behave the way you intended.