HTML5 > Elements of HTML

Unicodes in HTML5

Unicode of symbols in HTML


Unicodes

We can use the symbols by using the codes in the HTML

<style>
        body{
              font-size:20px;
    }
    
    </style>
    <h2 style="color:blue"><i>Symbols using their unicode values</i></h2>
    <p>Umbrella  &#9730;</p>
    <p>Cloud  &#9729;</p>
    <p> Black star  &#9733</p>
    <p>White phone &#9743</p>
    <p>Black phone  &#9742</p>
    <p>ballot box with x &#9746</p>
    <p> coffee cup &#9749</p>
    <p> umbrella with rain drops  &#9748</p>
    <p>hand right  &#9755</p>
    <p> face  &#9786</p>
    <p> sun  &#9788</p>
    <p>Moon  &#9789</p>
    <p> Love  &#9829</p>
    <p> Music  &#9836</p>
    <p>Ash symbol  &#9839</p>
    <p> black flag &#9873</p>

In the above code snippet we have defined the different symbols using their codes by using&#code to define the symbol

output

 Views: 3935 | Post Order: 30



Write for us






Hosting Recommendations