Forms Flashcards
HTML Forms
element that wraps all of the elements included within the form
[form]
HTML Forms
[form] attribute that contains the URL to which information included within the form will be sent for processing by the server
action
HTML Forms
[form] attribute that defines the HTTP method browsers should use to submit the form data
method
HTML Forms
one of the primary elements used to obtain text from users
[input]
self closing
HTML Forms
[input] attribute used to define what kind of information is to be captured within the control
type
ex
HTML Forms
[input] type attribute value used to specify a push button with no default behavior
button
HTML Forms
[input] type attribute value used to specify a checkbox
checkbox
HTML Forms
[input] type attribute value used to specify a color
color
HTML Forms
[input] type attribute value used to specify a year, month and day with no time
date
HTML Forms
[input] type attribute value used to specify a date and time, with no timezone
datetime-local
HTML Forms
[input] type attribute value used to specify an email address
HTML Forms
[input] type attribute value used to specify a file chosen by the user
file
HTML Forms
css pseudo-classes applied to email input types after validation
:valid and :invalid
HTML Forms
attribute used with file input types to specify what kinds of files the server will accept
accept
ex
accept=”image/*”
accept=”audio/*”
accept=”video/*”
accept=”.some_ext,image/*”
HTML Forms
[input] type attribute value used to specify a control that is not displayed but whose value is submitted to the server
hidden
HTML Forms
[input] type attribute value used to specify a graphical submit button
image
HTML Forms
attributes that must be used with image input types to specify the location of the image and the alternate text
src, alt
HTML Forms
attributes that can be used with image input types to specify the dimensions of the image in pixels
height, width
HTML Forms
[input] type attribute value used to specify a month and year, with no timezone
month
HTML Forms
[input] type attribute value used to specify a floating point number
number
HTML Forms
[input] type attribute value used to specify a single line text field whose value is obscured
password
HTML Forms
attribute used with password input types to specify the maximum length of the value that can be entered
maxlength
HTML Forms
[input] type attribute value used to specify a radio button
radio
HTML Forms
attribute that must be used with radio input types to define the value submitted by this item
value
HTML Forms
attribute used with radio input types to specify whether the item is selected by default
checked
HTML Forms
attribute used to group radio input types together
name
HTML Forms
[input] type attribute value used to specify a number whose exact value isn’t important
range
HTML Forms
attributes used with range input type to specify the size and starting points of the range
min: 0
max: 100
value: min + (max-min)/2, or min if max is less than min
step: 1
HTML Forms
[input] type attribute value used to specify a button that sets the form contents to default values
reset
HTML Forms
[input] type attribute value used to specify a single-line text field for entering search strings
search
HTML Forms
characters that are automatically stripped from search input types
linebreaks
HTML Forms
[input] type attribute value used to specify phone numbers
tel
HTML Forms
attribute that can be used to validate input based on a regular expression
pattern
HTML Forms
attributes that can be used with tel input types to enforce a certain syntax
maxlength, pattern
HTML Forms
[input] type attribute value used to specify a single-line text field
text
HTML Forms
[input] type attribute value used to specify a time with no time zone
time
HTML Forms
[input] type attribute value used to specify a url
url
HTML Forms
attribute used with input elements that specifies the id of the form to which the element belongs; allows you to put a form field anywhere the page
form
HTML Forms
attribute used to specify the name of the element; this value is submitted with the form data
name
HTML Forms
attribute used to display a hint to the user as to what can be entered int the control
placeholder
HTML Forms
attribute used to indicate that the user cannot modify the value of the control
readonly
HTML Forms
attribute used to indicate that the user must fill in a value before submitting a form
required
element used to accept multi-line plain text
[textarea]
[textarea] attribute used to specify the visible width of the text control
cols
default 20
element that represents a caption for an item in a user interface
[label]
2 ways that a control element can be associated with a specific label
by placing the control element inside of the [label] element or by using the for
attribute
element that represents a control that presents a menu of options
[select]