Похожие чаты

Guys, based on your experience: I have icons that are

connected only with js, clicking them correspond to an action (are controls icon). Is better to add the icon <i> to a click event or add the <a> to the click event that wraps the <i>?

<i class="fas fa-check" data-control></i>

or

<a nohref data-control><i class="fas fa-check"></i></a>

3 ответов

14 просмотров

why won't you just make it a button?

<i> stands for "italics", not "icon"

nohref is a thing?

Похожие вопросы

Карта сайта