Week 3 - HTML Part 3 Flashcards

1
Q

What are the main tags/attributes needed for a html form?

A

Method (get - submit form and obtain data/post - submit form and store data) & action (URL of where the server to process form goes)

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

How do C/S relate to forms?

A
  1. You request the HTML form using HTTPS over Internet
  2. Server sends HTML form using HTTPS over Internet
  3. You submit form over Internet
  4. The server processes the form and generates a response to show client side.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are structural elements used for?

A

Used for more styling and being able to section code so that it’s more accessible

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

What does a radio button need to function properly?

A

Types are same, names are same but values are different.

This is because we want a single selection from multiple choices.

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

What does a checkbox need to function properly?

A

Types are same, names have [] at end, but values are different.

This is because we want to make an array to accept multiple selection.

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

What does a dropdown menu need to function properly?

A

Uses select with name and id tags.

We mark up all of the different options using:
option value = “…”

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

What does a HTML form do?

A

Allows for data to be submitted into a webpage and processed by the server to get a response.

(You’ve successfully registered!)

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

Semantic HTML

A

The code describes meaning to the browser and developer.

Eg: nav, footer, header, article, section, figure

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

Non-Semantic HTML

A

The code doesn’t describe anything about the content, only used for structure.

Eg: span, div, br

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

div

A

Block level container used to section off code for further CSS styling.

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

span

A

Inline level element used to group other inline elements for further CSS styling.

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