Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Material Icon In a HTML input?

Tags:

html

icons

I want an icon to go into an input submit button. I've tried the following, but it doesn't work. Any advice?

<input type="submit" name="submit" value="Submit" />

I wanna put the following in:

<i class="material-icons">star_rate</i>
like image 965
twinsett Avatar asked Aug 15 '16 06:08

twinsett


1 Answers

There are various ways this can be done but according to your code just use

<button type="submit" name="submit"><i class="material-icons">star_rate</i></button>
like image 135
AntonyMN Avatar answered Sep 30 '22 17:09

AntonyMN