Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add icon in javascript

<!doctype html>
<html>
    <head>
        <title>Essential JS 2 </title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8"  />
        <link href="./node_modules/@syncfusion/ej2/material.css" rel="stylesheet" />
        <style>
            .e-search:before{
                content:'e993';
            }
            .e-upload:before{
                content: 'e725';
            }
            .e-font:before{
                content: 'e34c';
            }
        </style>
    </head>

    <body>
        <div class="icons">
            <ul>
                <li><span class="e-icons e-search"></span></li>
                <li><span class="e-icons e-settings"></span></li>
                <li><span class="e-icons e-upload"></span></li>
                <li><span class="e-icons e-font"></span></li>
            </ul>
        </div>
    </body>
</html>
 
PREVIOUS NEXT
Tagged: #add #icon #javascript
ADD COMMENT
Topic
Name
8+4 =