For making a user friendly website, I have to use some of Font Awesome fonts in <h>
elements like this:
<h2>
<i style="color: rgb(102, 149, 45); vertical-align: inherit;" class="fa fa-gear"></i>
Performance
</h2>
In fact, this is a review article. Is it OK to put these fonts (or <i>
elements) in the inner HTML of header elements like <h1>
, <h2>
, <h3>
, etc.?
Please provide your source or some documentation, too, because it's really important for me; I don't want to make any mistakes about this topic.
<span>
for FontAwesome, its silly using<i>
Using<h2><span class="fa fa-gear"> </span></h2>
will work just as well. – Simon Hayter♦ Feb 10 '16 at 15:18