Home > Net >  How to insert Unicode U 2665 in a <h2> HTML?
How to insert Unicode U 2665 in a <h2> HTML?

Time:03-24

I wanna insert unicode U 2665 in heading of HTML. Thus, I did:

        <h2 id="listas">U 2665 listas</h2>

Unfortunately, this generates the following output when rendered by the browser:

enter image description here

I tried using "and percent" with &U 2665. But it did not work out either.

What should I do to fix this?

Thanks.

CodePudding user response:

It would be something like that:

<h2 id="listas">&#9829; listas</h2>

You can check the HTML entity in pages like this one https://www.compart.com/en/unicode/U 2665

Preview: https://jsfiddle.net/0mne9kL1/

CodePudding user response:

<h2>&#9829;</h2>
  • Related