HTML Styles Flashcards

(30 cards)

1
Q

is used to add styles to an element, such as color, font, size, and more.

A

HTML style attribute

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

Setting the style of an HTML element, can be done with

A

style attribute

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

Style Attribute Syntax

A

<tagname>
</tagname>

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

property defines the background color for an HTML element

A

background-color

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

property defines the text color for an HTML element.

A

color

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

property defines the font to be used for an HTML element

A

font-family

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

property defines the text size for an HTML element

A

font-size

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

property defines the horizontal text alignment for an HTML element

A

text-align

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

Use ______ for border size

A

border

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

border format

A

border: size border-type color

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

Defines a dotted border

A

dotted

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

Defines a dashed border

A

dashed

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

Defines a solid border

A

solid

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

Defines a double border

A

double

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

Defines a 3D grooved border. The effect depends on the border-color value

A

groove

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

Defines a 3D ridged border. The effect depends on the border-color value

17
Q

Defines a 3D inset border. The effect depends on the border-color value

18
Q

Defines a 3D outset border. The effect depends on the border-color value

19
Q

Defines no border

20
Q

Defines a hidden border

21
Q

In HTML, colors can also be specified using 5 values

A

RGB values
HEX values
HSL values
RGBA values
HSLA values.

22
Q

RGB value is defined as

A

rgb(255, 99, 71)

23
Q

Hex value is defined as

24
Q

HSL value is defined as

A

hsl(9, 100%, 64%)

25
A in RGBA and HSLA stands for
Alpha channel (transparency value or Opacity)
26
An RGB color value represents
RED, GREEN, and BLUE light sources
27
Each parameter (red, green, and blue) defines the intensity of the color with a value between
0 and 255
28
How many possible color in RGB value
256 x 256 x 256 = 16777216 possible colors
29
A hexadecimal color is specified with
#RRGGBB
30
HSL stands for
hue, saturation, and lightness