Input Type=Readonly
 
Support Key: [2|3|3.2|4] [X1|X1.1] [IE|M|N3-4.x|O]
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson =
Main Index | Element Tree | Element Index | HTML Support History



   Quick Statistics   
End Tag:
   Omitted
Standards Details:
NA
XHTML Modules:
NA
CSS 'display' Type:
"inline" (Replaced element)
CSS Mapping:
NA
Default Rendering:
A text box having content that is unalterable by the user.
Official Docs:
None

What is it?
READONLY is a TYPE attribute value to the INPUT element for FORMs. A READONLY field is a text entry field [like the INPUT TYPE=TEXT field], but the data is only observable and can not be altered by the user. The text is also dimmed/greyed visually.

This behavior can also be achieved with the INPUT TYPE=TEXT element, along with other form elements by using the HTML 4.0/XHTML READONLY attribute.

Common Attributes
%Events%
[2|3|3.2|4] [X1|X1.1] [IE|M|N4-4.x|O]

Specific Attributes
Maxlength
[2|3|3.2|4] [X1|X1.1] [IE|M|N3-4.x|O]
Standards Details: NA
Required? No
Description:
This optional attribute constrains the number of characters that can be displayed in the readonly field from the default specified value. If the MAXLENGTH attribute is larger than the optional SIZE attribute, the text field should scroll as necessary.
Values: Positive integers.
Name
[2|3|3.2|4] [X1|X1.1] [IE|M|N3-4.x|O]
Standards Details: NA
Required? Yes
Description:
This is a required attribute that associates a symbolic name to the field for submittal to the form processing script.
Values: Alphanumeric characters.
Size
[2|3|3.2|4] [X1|X1.1] [IE|M|N3-4.x|O]
Standards Details: NA
Required? No
Description:
This attribute controls the amount of display space allocated to the readonly field.
Values: Positive integers.
Type
[2|3|3.2|4] [X1|X1.1] [IE|M|N3-4.x|O]
Standards Details: NA
Required? Yes*
Description:
* This is the required TYPE attribute for this INPUT mechanism. From the strict view, the TYPE attribute is not required.
Values: READONLY
Value
[2|3|3.2|4] [X1|X1.1] [IE|M|N3-4.x|O]
Standards Details: NA
Required? No
Description:
This indicates a default value for the readonly field. The value is displayed, but may not be altered by the user. This value is paired with the NAME attribute upon submittal to the form processing script.
Values: Alphanumeric characters.
Example
<form>
   <input type="readonly" name="roval" value="Readonly Value" />
</form>
Parent Model
%In-line Parent% | %Block Parent%
Content Model
This element does not accept any content.
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...