Basics Flashcards

1
Q

form element

A

wraps a section of the document that contains form controls

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

action attribute

A

specifies the web address of a program that processes the information submitted via the form

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

method attribute

A

specifies the HTTP method that the browser should use to submit the form, such as POST or GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • Create a form element
  • Add an action attribute to the form element with the value “index.html”.
  • Add a method attribute to the form element with the value “post”.
A

(form action=”index.html” method=”post”)

(/form)

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

input element

A
  • used to create many different types of form controls
  • SCT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

type attribute

A

specifies what kind of form control should be rendered, such as text, email, passwords, and more

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

name attribute

A

submitted with form data so that server-side code can parse the information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • Inside the form element, add an input with the type attribute set to the value “text”.
  • Add an id attribute with the value “name”.
  • Add a name attribute to the input. Set its value to “user_name”.

(form action=”index.html” method=”post”)

(/form)

A

(form action=”index.html” method=”post”)

(input type=”text” id=”name” name=”user_name” /)

(/form)

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

textarea element

A
  • accepts multiple lines of text from the user
  • most browsers will render the textarea element with a widget to allow for resizing the editing area
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  • Inside the form element, add a textarea element
  • Add an id attribute and set the value to “comment”.
  • Add a name attribute and set the value to “user_comment”.

(form action=”index.html” method=”post”)

(/form)

A

(form action=”index.html” method=”post”)

(textarea id=”comment” name=”user_comment”)(/textarea)

(/form)

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

button element

A
  • renders a clickable button
  • the type attribute specifies whether the button should submit the form data, reset the form, or have no default behavior for use with JavaScript
    • type=”reset”
    • type=”button”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  • Create a button element. Between the button tags, write the text “Submit Comment”.
  • Add a type attribute with the value “submit”.
A

(button type=”submit”)Submit Comment(/button)

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