🟣| Web Design - Implementation Flashcards

1
Q

Positioning:

Float

Definition

A

Floating elements to the left or right

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

Positioning:

Display

3

Definition

A
  • Block: element is displayed as a block, generating line breaks before and after.
  • Inline: element will be displayed on the same line as the preceding element (if there is space).
  • None: element is not displayed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Positioning:

Clear

3

Definition

A
  • Left: no floating elements on the left of the specified element.
  • Right: no floating elements on the right of the specified element.
  • Both: no floating elements on the left or right of the specified element.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Positioning:

Margins

Definition

A

Sets a margin around a block to separate it from other elements.

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

Positioning:

Padding

Definition

A

Sets padding within a block to move the contents away from the edge.

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

Positioning:

Height & Width

Definition

A

Sets the height and width of an element

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

Display:

Removing Bulletpoints

Code

A

list-style-type:none

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

Display:

Hover

Definition

A

Triggered when the mouse hovers over an element

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

Form:

Text

Code

A

< input type=”text” name=”firstname”>

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

Form:

Number

Code

A

< input type=”number” name=”rating”>

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

Form:

Textarea

Code

A

< textarea name=”message” rows=”6” cols=”80”> < /textarea >

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

Form:

Radio

Code

A

< input type=”radio” name=”traffic-light” value=”red” checked>Red< br>

< input type=”radio” name=”traffic-light” value=”amber”>Amber< br>

< input type=”radio” name=”traffic-light” value=”green”>Green< br>

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

Form:

Select

Code

A

< select name=”bigcats”>
< option value=”lion”>Lion</option>

< option value="tiger">Tiger</option >

< option value="panther">Panther</option >

< option value="puma">Puma</option >

< /select >

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

Form:

Submit

Code

A

< input type=”submit” value=”Submit”>

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

Form:

Length Validation

Code

A

< input type=”text” maxlength=”15” minLength=”1”>

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

Form:

Range Validation

Code

A

< input type=”number” min=”0” max=”10”>

17
Q

Form:

Presence Check

Code

A

< input type=”text” required>

18
Q

How is a horizontal navigation bar created?

Definition / Code

A
  • Remove bullet points (nav ul)
  • Float left (nav ul li)
  • Display block and padding (nav ul li a)
  • Change appearance when mouse hovers (nav ul li a:hover)