Beginning HTML and CSS Flashcards

1
Q

in html what is the h1 tag?

A
  • First level headline elements label important sections of a page, just like in a newspaper.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

in html what is the purpose of the form element

A

to accept user input

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

in html can you nest forms

A

no

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

in html forms what is the action attr used for

A

The action attribute 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
5
Q

in html forms what is the method attr used for

A

The method attribute specifies the HTTP method that the browser should use to submit the form, such as POST or GET. Forms cannot be nested inside one another

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

in html what does the post method do in refernece to a form

A

submit the body of the form

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

in html how is the get method represented in the url

A

it is appended to the url separated by ?’s &’s

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

in html forms what is the input tag used for

A

he input element is used to create many different types of form controls. The type attribute specifies what kind of form control should be rendered, such as text, email, passwords, and more. The name attribute is 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
9
Q

in html what is the textarea tag used for

A

The textarea element 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
10
Q

in html is a textarea self closing tags?

A

no

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

in html is the input a self closing tag

A

yes

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

in html what is required to submit a form

A

a submit button

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

in html what is the button tag

A

Just as the name implies, the button element will render 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.

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

in an html button what types are available

A

submit, reset

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

in an html button what does a type of reset do

A

resets form data

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

in html what is the label element

A

The label element helps to organize forms by assigning some helpful text to a form control. This text helps the user to understand what kind of data they should add to each form field.

17
Q

in html what is the benefit of adding the “for” attribute to a label

A

selecting the label sets the cursor inside the input field

18
Q

in html what is the fieldset element for

A

The fieldset element wraps multiple form elements into common groups. This can help organize a form and make it easier to understand for users.

19
Q

in html what is the legend element for

A

The legend element is similar to the label element, but instead of labeling a form control, it labels a fieldset. Adding a legend to a fieldset can provide some helpful context for users that are filling out a form.

20
Q

in html what is a logical example of using the fieldset element

A

a mailing address

21
Q

in html what is the select element for

A

The select element renders a drop-down menu that contains selectable options. This type of form control is ideal for scenarios where the user must choose one option from a preset list of 5 or more choices.

22
Q

in html what is the option element for

A

The option element represents one of the choices that a user can choose in a select menu. It should always be nested inside of a select element.

23
Q

in html what is the optgroup element for

A

The optgroup element wraps one or more option elements and helps to create logical groups. The label attribute specifies the text that the optgroup should display above the nested options.

24
Q

In HTML 5 what is needed as the first line

A

<!DOCTYPE>

25
Q

In html what do you need to group radio buttons

A

the radio buttons have to share the same value for the name atr