CSS Flashcards

1
Q

What is CSS?

A

CSS stands for Cascading Style Sheet. It is a popular styling language which is used with HTML to design websites. It can also be used with any XML documents including plain XML, SVG, and XUL.

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

How can you integrate CSS on a web page?

A

Inline, Embedded, or External page.

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

What is Embedded Style Sheet?

A

When a stylings are ‘embedded’ in an HTML document using the < style > tags.

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

What is the use of CSS Opacity?

A

Opacity is used determine the transparency level of an object.

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

What is the difference between class selectors and id selectors?

A

ID’s are used to apply styles to one specific element. Classes can be used to apply to styles to multiples elements.

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

What is the CSS Box model and what are its elements?

A

The CSS box model is used to define the design and layout of elements of CSS.

The elements are:

Margin - It removes the area around the border. It is transparent.
Border - It represents the area around the padding
Padding - It removes the area around the content. It is transparent.
Content - It represents the content like text, images, etc.

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

What is the purpose of the z-index?

A

The z-index helps to specify the stack order of positioned elements that may overlap one another. The z-index default value is zero and can take on either a positive or negative number.

An element with a higher z-index is always stacked above than a lower index.

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

Explain the difference between visibility: hidden and display: none?

A

visibility: hidden hides the element, but it occupies space and affects the layout of the document.
display: none also hides the element but not occupy space. It will not affect the layout of the document.

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