IES: HTML-recog dk13 Flashcards

1
Q
  • Data sent to server: append a “query string” (begins with a “?”) to the Python script URL.
  • Multiple “query string” key=value pairs are separated by an “&”
  • Data can be sent: enter URL with query string directly into the address bar; hyperlink targeting the URL and query string; or JavaScript that sets location to the URL and query string
A

Test Server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • Built from HTML elements that send data to a web server for processing by a specified server-side script
  • Each includes a name attribute and a value attribute processed as key=value pairs
A

Web page forms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • All form component elements are enclosed between these tags.
  • Must include a method attribute to specify the submission method as GET or POST
  • Must include an action attribute to specify the URL of the processing script
A

<form>
</form>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • Attribute that specifies which HTTP method is used to submit the form
  • Can be assigned values of “GET” or “POST”
A

method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • The preferred submission method of forms: appends the data to the URL
  • Data sent by this method is attached to the request as a query string, so may be visible in the browser’s address field in the web server’s response.
  • They only allow the URL to append up to around 200 characters ( varies by browser)
A

GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • Submission method of forms that encodes the data differently from the GET method.
  • Can be used when the GET method fails.
  • You can submit by the POST method to prevent sensitive data from being visible in the browser’s address field with the web server’s response.
  • Provides a much larger capacity than the GET method as the text is sent as “Form Data” along with the HTTP header, not simply appended to the URL.
A

POST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  • Attribute specifying where to send the form-data when a form is submitted.
  • Specifies the URL of a server-side script that is to be used to process the submitted data.
A

action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  • Typically an HTML form will have this that the user clicks to send the data processing.
  • Typically created by assigning the value “submit” to a type attribute of an input tag.
  • This tag may include name and value attributes to submit data assigned to them as a name=value pair
  • Also created by assigning an id attribute to a form tag with a value identical to a button tag’s form attribute value (button tag must have type attribute with “submit” value).
A

Submit button

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • An HTML form can provide these.
  • Created by assigning the value “text” to the type attribute of an input tag and a name to its name attribute
  • The input data and text box are sent as a key=value pair.
  • The input tag can include a value attribute to specify a default value
A

Text boxes for input data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • A text box for a password is created by assigning this value to the type attribute of an input tag
  • It does not display is contents as readable text
A

“password”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  • Represents a typed data field usually associated with a control that allows users to edit its value.
  • This element is capable of providing many different types of fields, according to the value present in the type attribute.
  • Can also control what the user is permitted to submit by the value assigned to its type attribute.
  • Can enforce its completion by including the required keyword.
  • Can include name and value attributes to specify data for submission as a key=value pair.
A

<input></input>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • text
  • password
  • url
  • email
  • date
  • month
  • week
  • time
  • datetime-local
  • number
  • range
  • color
  • file
A

Input types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  • String of text
  • You can specify a default value for this input to the “value” attribute of its input tag.
A

text (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • String of text ( obscured by browser)
A

password (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • Valid URL protocol and domain address
A

url (input type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  • Valid email address
A

email (input type)

17
Q
  • Date in mm/dd/yyyy format
A

date (input type)

18
Q
  • Month and year
A

month (input type)

19
Q
  • Week number and year
A

week (input type)

20
Q

Time in HH:MM format

A

time (input type)