- For XHTML,
<input type="text" disabled="disabled" />
is the valid markup. - For HTML5,
<input type="text" disabled />
is valid and used by W3C on their samples. - In fact, both ways works on all major browsers.
More Related Contents:
- How to add a new line in textarea element?
- How to add default value for html ? [closed]
- Limit number of characters allowed in form input text field
- What character represents a new line in a text area
- How to remove word wrap from textarea?
- Can you have multiline HTML5 placeholder text in a ?
- Should I size a textarea with CSS width / height or HTML cols / rows attributes?
- Bug With Firefox – Disabled Attribute of Input Not Resetting When Refreshing
- Set maxlength in Html Textarea [duplicate]
- CSS Styling text areas like notebook-look
- Change color of one character in a text box HTML/CSS [duplicate]
- Adding Line Numbers To HTML Textarea
- HTML : Is there any way to show images in a textarea?
- Preserve line breaks in textarea
- How to validate pattern matching in textarea?
- HTML Textarea horizontal scroll
- How do I trigger an HTML button when the “Enter” key is pressed in a textbox?
- Why isn’t textarea an input[type=”textarea”]?
- Textarea value not getting posted with form
- Why does the html input with type “number” allow the letter ‘e’ to be entered in the field?
- how to make a whole row in a table clickable as a link?
- Provide an image for WhatsApp link sharing
- Centering a div block without the width
- How can I print background images in FF or IE?
- What’s the best way to set a single pixel in an HTML5 canvas?
- Margin while printing html page
- CSS Transition – eases in but doesn’t ease out?
- CSS image resize percentage of itself?
- Using local file for Web Audio API in Javascript
- HTML5 Canvas background image