CSS Flashcards

(45 cards)

1
Q

What does CSS stands for?

A

CSS stands for Cascading Style Sheets

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

What does CSS describe?

A

CSS describes how HTML elements are to be displayed on screen, paper and in other media

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

CSS saves alot of work, is this true?

A

Yes

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

CSS can control the layout of multiple web pages all at once.

Is this true?

A

Yes.

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

What 3 ways can CSS be added to HTML elements?

A

1.Inline
by using the style attribute in HTML elements

2.Internal
by using a <style> element in the <head> section</style>

3.External
by using an external CSS file

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

What is the most common way to add CSS?

A

The most common way to add CSS is to keep the styles in seperate CSS files.

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

What is an inline CSS used for?

A

An inline CSS is used to apply a unique style to a single HTML element

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

The inline CSS uses the style attribute of what?

A

An inline CSS uses the style attribute of an HTML element.

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

Give an example of Inline CSS that sets the text color of the <h1> element to blue

A

<h1 style=”color blue;”This is a blue heading</h1>

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

What is an internal CSS used for?

A

An internal CSS is used to define a style for a single HTML page

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

Where is An internal CSS defined?

A

An internal CSS is defined in the <head> section of an HTML page, within a <style> element</style>

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

What is an External CSS used for?

A

An external style sheet is used to define the style for many HTML pages

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

What is one way that we can change the look of an entire website?

A

by changing one file

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

How to use an external style sheet?

A

To use an external style sheet, add a link to it in the <head> section of the HTML pae.

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

Give an example of how an external style sheet is used.

A

<!DOCTYPE html>

<html>
<head>
<link></link>
</head>
<body>

<h1> Hello </hl>
<p> Bye </p>
</body>
<html>
(style is changed)
</html></h1></body></html>

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

Give an example of how to change background colour in CSS

A

body{ background - color:lightblue;}

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

Give an example of how to change font color in CSS

A

h1{color:white;}

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

Give an example of how to change the alignment in CSS

A

h1{text-align:center;}

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

Give an example of how to change font type and font size in CSS

A

p{font-family : Verdana;
font-size:20 px; }

20
Q

Give an example on how to apply a rounded image in CSS

A

w3 - round
<img src= “img - snowtops.jpg”

class=”w3- round”
alt = “Norway”

21
Q

Give an example on how to apply a circled image in CSS

A

w3 - circle
<img src = “snowtops.jpg”
class+ “w3 - circle”
alt= “Alps>

22
Q

Give an example on how to apply a bordered Image in CSS

A

w3-border

<img src = “snowtops.jpg”
class = w3-border w3-padding”

alt - “Alps”>

23
Q

Give an example on how to apply image as a card in CSS

A

w3 - card

<div>
<img src=img-avatar.png"
alt="Person">
</div>

24
Q

Give an example on how apply image text in CSS

A

w3- display- classes

<div>

<img></img>

<div>Bottom Left</div>
</div>

25
What is a factor about class responsive Image in CSS?
Image scales down if it has to but never scales higher than its original size
26
Give an example on how to apply class responsive image in CSS
< img src = "img-lights.jpg" alt = "Lights" class + "w3 - image">
27
Give an example on how to apply a style responsive image that scales both up and down on responsiveness = width:100% in CSS
Lights
28
Give an example of how to apply a style responsive image restricted to a mximum size in CSS = max- width:_ _ _ _px
Lights
29
What is the CSS code for Image opacity?
min/max (optional)
30
Give an example of how to use CSS code for Image Grayscale
Table
31
Give an example of how to use CSS code for Image Sepia
32
Give an example of how to use the CSS code for Hover effects
Einstein
33
Give an example of how to use CSS code for Image Opacity.
Forest
34
How does Opacity Off work in CSS code?
- hover - opacity adds transparency on mouse-over -hover - opacity- off removes transparency on mouse-over
35
give an example of how to use the opacity off in CSS coding
Alps>
</div>
</div>
</div>

<div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=22769549&returnTo=%2Fpacks%2F22769549%2Fsubscribe&source=preview-card&subject=Coding' data-card-is-blurrable data-number='36' id='card-596357421'>
<div class='header'>
36
</div>
<div class='card-face question'>
<div class='question-content'>
Give an example how to apply background color to the text

Hello World

Lorem ipsum...

37

Hello World

Lorem ipsum...

What does this code display?
Hello World (blue background) Lorem ipsum(below Hello World with Tomato background)
38
Give an example of how to apply text color in CSS Tomato to Hello World DodgerBlue to Lorem ipsum Medium SeaGreen to Ut wisi enim

Hello world

Ut wisi enim...

39
Give an example of how to apply Border Color to CSS code

Hello World

Hello World

40
What is the CSS color value for Tomato (RED)?
rgb (255,99,71) #ff6347 hsl(9,100%,64%)
41
What is the CSS color value for Tomato (RED) 50% transparent?
rgba(255,99,71,0.5) hsla(9,100%,64%,0.5)
42
compare CSS Box Model to a physical package.
Content-> The actual item inside the package Padding-> The protective Bubble wrap Border-> The cardboard box Margin-> The space between packages in a warehouse
43
Why is CSS box Model important?
-controls spacing and layout of CSS elements -Essential for responsive web design and alignment issues
44
Give all the properties of CSS Box model
Content-Text,images or other elements inside the box Padding- Space between content and the border Border- The edge of the box styled with color, thickness Margin- Space between the element+ other elements
45
Give a CSS Syntax example
box{ width:200px; height:100px; padding:10px; border:5px solid black, margin:70px;}