IES: HTML-recog dk14 Flashcards
1
Q
- Day and time as mm-dd-yy HH:MM
A
datetime-local (input type)
2
Q
- Numeric integer value
A
number (input type)
3
Q
- Numeric integer value (slider)
A
range (input type)
4
Q
- Color in #RRGGBB hexadecimal format
A
color (input type)
5
Q
File path address (browse)
A
file (input type)
6
Q
- size - the width of the text box in average character widths
- minlength and maxlength - permissible number of characters
- min and max - permissible range of numeric value
- placeholder - provides a data entry hint to the user
- readonly - the default value in the text box cannot be changed
- disabled - the text box is grayed out and will not be submitted
A
Optional input attributes for text or password
7
Q
- Defines a multi-line text input control, and is often used in a form, to collect user inputs like comments or reviews.
- Can hold an unlimited number of characters, and renders in a fixed-width font (usually Courier).
- The size is specified by the <cols> and <rows> attributes (or with CSS).</rows></cols>
- The name attribute is needed to reference the form data after the form is submitted (if you omit the name attribute, no data from the element will be submitted).
- The id attribute is needed to associate the element with a label.
- May include a read-only attribute to prevent user editing
- **Unlike the input tag, this element has no value attribute as its content is treated as its value.
- **Average character which may vary between browsers, so the physical size of the element’s field may vary as well.
A
<textarea>
</textarea>
8
Q
- Assign to type attribute of <input></input>.
- Must also include a name attribute and a value attribute: specifies the key=value pair values.
- Option: may include a Boolean checked attribute.
- May be individually unique or several can bear the same name with different values allowing several to be checked simultaneously.
A
“checkbox”
9
Q
- Unlike checkboxes, these buttons that share a common name are mutually exclusive : when one is selected all others are automatically switched off.
- Similar to checkboxes: created by assigning the value of radio to the type attribute of an input tag.
- Multiple checkboxes and these buttons can be visually grouped by surrounding their input elements with <fieldset> tags and May bear a common group name through the use of <legend> tags.
A
“radio”
10
Q
- Only groups the related elements it encloses for visual presentation.
- It does not associate them programmatically.
A
<fieldset>
</fieldset>
11
Q
- Defines a caption for the <fieldset> element.
- Used to state a common group name.
A
<legend>
</legend>
12
Q
- Hidden elements; create no visible controls; allow additional data to be submitted to the server.
- Created by assigning the value hidden to the type attribute of an input tag
- Must also include a name attribute;
- May include a value attribute to specify static data as a name=value pair.
- Option: the input tag may include an ID attribute and omit the value attribute so its value can be specified by script.
- Hidden form data can be used to perform a calculation and dynamically displays result in an output tag.
- (Hidden data element can be useful as intra-website Cookies)
A
Hidden form data
13
Q
- Must include an ID attribute and a for attribute for reference in script.
- Merely displays the result of the calculation.
A
<output>
</output>
14
Q
- Can specify multiple element identities as a space separated list.
- Can be used in an assignment to the form tags oninput attribute to perform a calculation whose result will appear in the output element but will not be submitted to the server.
A
for
15
Q
- Calls upon the operating system’s “choose file” dialog allowing the user to browse and select a file.
- Created: assign the value “ file” to the type attribute of an input tag and a name to its name attribute.
- Produces: a text field and a browse button to launch the “choose file” dialog (full path appears after file is chosen).
- Upon submission, element name and selected file’s name are sent to the web server as a name=value pair.
A
File selection facility