Possible Duplicate:
<I> tag for icons?
I've seen in FontAwesome that to use their icon fonts, they are employing an empty <i>
, something like this:
<a class="btn" href="#">
<i class="icon-refresh"></i> Refresh
</a>
instead of wrapping it with <span>
like this:
<a class="btn" href="#">
<span class="icon-refresh">Refresh</span>
</a>
I've seen some other websites employ similar technique too. AFAIK, both technique utilizes the CSS pseudo-element :before
, so I wonder why do they use <i>
instead of wrapping it with <span>
?
Are there any advantages on using an empty <i>
? And is it semantic?