0

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"?

asked Jun 20, 2013 at 6:22

8 Answers 8

1

no, html attributes are case insensitive

answered Jun 20, 2013 at 6:24
Sign up to request clarification or add additional context in comments.

1 Comment

Attribute names are case insensitive but the values only for certain attributes. So for certain attributes the values are indeed case sensitive <input type="submit" value="Submit"> and <input type="submit" value="submit">
1

Mostly browsers ignore this, but it should be lowercase as described

answered Jun 20, 2013 at 6:25

1 Comment

This section just says that the attribute name and the tag name itself have to be lowercase <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.
1

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.

answered Jun 20, 2013 at 6:26

Comments

0

Not really, but lower case is cooler.

answered Jun 20, 2013 at 6:24

Comments

0

All the letters are converted to lowercase. For example type="pAssword" is the same as type="password"

answered Jun 20, 2013 at 6:26

Comments

0

Its just a Typo, there is no difference. Even TEXT does the same thing.

answered Jun 20, 2013 at 6:26

Comments

0

I don't think there is any difference but you should follow W3C standards.

answered Jun 20, 2013 at 6:27

Comments

0

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.

What Big Bosses has to say about that (W3C)

answered Jun 20, 2013 at 6:35

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.