I came across a form like this:
<input name="BuyerWizard$buyerFirstName" id="BuyerWizard_buyerFirstName" type="text" maxlength="100">
<p class="text">E-mail Address:</p>
<input name="BuyerWizard$buyerEmail" id="BuyerWizard$buyerEmail" onkeydown="arrowKeyNavigate(this);" type="Text" maxlength="100" value="">
Is there any different between the input type="text" and input type="Text"?
8 Answers 8
no, html attributes are case insensitive
1 Comment
<input type="submit" value="Submit"> and <input type="submit" value="submit">Mostly browsers ignore this, but it should be lowercase as described
1 Comment
<input type= instead of <INPUT TYPE=. Anyway this is about xhtml without knowing which doctype is used this part is irrelevant. How the value of an attribute has to be written depends on the attribute itself. But there is no general rule that an attribute value has to be lowercase.According to the Mozilla Developer Network there is only one attribute value for the type attribute called "text", so a capitalized value should be the same as the uncapitalized.
The W3C documentation for HTML4 states that the value for the type attribute is case-insensitive.
Comments
Not really, but lower case is cooler.
Comments
All the letters are converted to lowercase. For example type="pAssword" is the same as type="password"
Comments
Its just a Typo, there is no difference. Even TEXT does the same thing.
Comments
I don't think there is any difference but you should follow W3C standards.
Comments
If you are using HTML4 you can use both, because is case-insensitive. But if you are using XHTML I think you must use lowercase, because it's case-sensitive.