0

What is the use of class="submit" in submit button?

Plz explain

24th Aug 2017, 11:51 AM
Bhagyashree Dave
Bhagyashree Dave - avatar
2 odpowiedzi
+ 8
it's just a selector for CSS or Javascript .... etc. In CSS : .submit { color:red; } In Javascript : document.getElementById("submit");
24th Aug 2017, 12:05 PM
Leon lit
Leon lit - avatar
+ 4
The class attribute was used to specify the name refer to the style in CSS. That means it may refer to something like:- .submit { color: rebeccapurple; } in the CSS which change the text color of the submit button. I've seen you already started the HTML course in SoloLearn and please take the CSS cource as well to learn more about it.
24th Aug 2017, 12:02 PM
Zephyr Koo
Zephyr Koo - avatar