Resources Menu


Quick Reference Sheets for Webmasters

Quick Reference sheets are packed full of useful information for all webmasters.

HTML Reference Sheet

HTML Tag List


<input>
This element defines an input field where the user can insert data to be used in forms.

Attributes
accept
Value(s) : mime type(s)
This attribute defines the accepted mime types of the file. The mime types can be a list of comma-separated types. This attribute is ONLY used with type="file"
align
Value(s) : left | right | top | texttop | middle | baseline | bottom
This attribute is ONLY used in combination with type="image" to align the text following the image.
alt
Value(s) : alternative text
This defines alternative text to display in place of the image. Used ONLY with type="image".
checked
Value(s) : checked
Defines if a radio button or checkbox is checked when it is loaded. Only used with type="radio" and type="checkbox".
disabled
Value(s) : disabled
Disables an input field so that a user cannot select it or input to it.
maxlength
Value(s) : length
This specifies the maximum number of characters in length that an input field will accept.
name
Value(s) : field name
This sets a unique name for the input field which will be used in server or client side scripting for direct access to that input fields value.
readonly
Value(s) : readonly
Sets the input fields value to be read only which means it cannot be modified but it can be selected.
size
Value(s) : length
This defines the size of the input field based off a number of characters.
src
Value(s) : URL
Specifies the URL to an image to display. Only used with type="image".
type
Value(s) : button | checkbox | file | hidden | image | password | radio | reset | submit | text
This sets the type for your input element with a default value of "text".
value
Value(s) : value
This attribute sets the value for the input field.
example:
<input type="text" name="fullName" value="Your Name">