Gyancode

A free library of HTML, CSS, JS

Search This Blog

Wednesday 22 March 2017

How can i add label in Select Option in HTML

You can use this html code in your webpage.


<select class="board-selector">
                <option label="Create a Board">Create a Board</option>
                <option label="View all Boards">View all Boards</option>
                <optgroup label="Recent Boards">
                    <option label="awesome" selected="selected">awesome</option>
                </optgroup>
            </select>

No comments :

Post a Comment