S
S
SUS_ITS_LOVE2020-03-12 10:48:00
HTML
SUS_ITS_LOVE, 2020-03-12 10:48:00

What to do if Font Awesome icons are not displayed?

I have a page where Font awesome is used
When I refer to the icons as

<button id="btn_toogle_header"><i class="fa fa-bars"></i></button>

Everything works, but if like this
<option value="man">I am man <i class="fa fa-mars"></i></option>

It even shows up in Chrome Dev Tools.
5e69e8f4a22e7893212418.png
5e69e929b888b111260799.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xdevelx, 2020-03-12
@SUS_ITS_LOVE

https://developer.mozilla.org/ru/docs/Web/HTML/Ele...
<option>

Allowed content - Text, escaped characters (eg &eacute;) are allowed.

https://www.w3.org/TR/2011/WD-html5-author-2011080...
Content model: Text.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question