Why is submit lowercase in type but capitalized in value?

In the “Solution”, why is the word “submit” capital in value vs the type as shown below:

Solution: < input type=“submit” value=“Submit” >

Answered my own question, but this may help others.

The reasoning for the Caps in “value=“Submit”” is because that is the part that is going to show up on the “button” on the webpage.

6 Likes

yes, exactly. The value attribute is used to set the text (value) of a button. Then its common to use make the first letter of the first word upper case (normal grammar rules)

4 Likes