IES: HTML-recog dk14 Flashcards

1
Q
  • Day and time as mm-dd-yy HH:MM
A

datetime-local (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • Numeric integer value
A

number (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • Numeric integer value (slider)
A

range (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • Color in #RRGGBB hexadecimal format
A

color (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

File path address (browse)

A

file (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • Only groups the related elements it encloses for visual presentation.
  • It does not associate them programmatically.
A

<fieldset>
</fieldset>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  • Defines a caption for the <fieldset> element.
  • Used to state a common group name.
A

<legend>
</legend>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  • Form tag with enctype attribute is required.
  • Enctype attribute should specify encoding type as “multipart/form-data”.
  • Method attribute must specify the POST method (form data cannot be appended to a URL using the GET method).
A

Uploading selected file to webserver

17
Q
  • The encoding type attribute is used only with a <form> element.
  • Specifies how the form-data should be encoded when submitting it to the server.
  • When uploading selected file to web server, specify this attribute as “multipart/form-data.”
A

enctype

18
Q
  • For scripting purposes: allows dynamic interaction with a form.
  • Can be used to set attribute values
  • Created: specifying “button” value to the type attribute of an input tag; should include an ID attribute to easily identify that element; text assigned to the button’s value attribute will appear on the button face.
A

Push buttons

19
Q
  • Sets the initial state of a checkbox or radio button to checked.
  • This attribute need have no assigned value: its presence equals on; its absence equals off.
  • In script, the box’s checked property needs to be assigned a “true” value to check the box.
A

checked

20
Q
  • Returns any HTML form to its original state: all form data values are set to their initial default values.
  • Created: specifying a “reset” value to the type attribute of an input tag nested in a <form> tag.
A

Reset button