- 1
What means "value" & "class" ?
can someone tell me what means "value" & "class" here.Why should i use them in here? <input type="submit" value="send" class="submit"/>
1 ответ
+ 6
> 'value' store the text to be displayed in this cas on the submit button,
> 'class' store one or many classes names (separated by white space), to be targeted by Css selectors mainly for styling it...
'class' have always this behaviour with any html element (it's a basic commonly shared attribute), while 'value' is specific to <input>s elements (including <textarea>) context, and should handle different behaviour regarding the 'type' of <input> (mostly the user value inputed) ^^