2.2. Intro to HTML/CSS: Making webpages Khan academy Flashcards

1
Q

What grouping tags do you know in HTML?

A

For grouping together in a box several elements: “

For text : “ “

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

Which CSS decalaration sets the overflow of text in a box?

A

overflow:

overflow-x:

overflow-y:

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

What attributes can have the overflow declaration in CSS?

A

visible

hidden

auto

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

What declarations would you use in CSS to set the dimentions of a box?

A

width: 70%; or width: 200px;
height: 180px; or 80%;

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

Whitch are the elements of a box model?

A

Content

Padding

Border

Margin

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

What CSS declaration can you use to set the position of a box to the top left 30 pixels from left and 50 pixels from the top?

A

position: absolute;
top: 50px;
left: 30ps;

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

if you have two pictures please tell us how can you set picture one on top if picture 2?

A

picture 1’s CSS declaration:

z-index: 2;

picture 2’s CSS declaration:

z-index: 1;

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

What CSS declaration do you use to float a box to the left or to the right?

A

float: left;

or

float: right

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

Ho doyou position a footer box to be at the bottom of the floated elements of the webpage?

A

We can use the CSS declaration:

clear: both;

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

How do you set the with of a flaoted box?

A

It is recommended to use procentage instead of pixels in the CSS declaration:

with: 30%;

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

Please write the script for a CSS descendent selector that would like to style a strong tag in a paragraph.

A

p strong { }

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

Please write the script for a CSS descendent selector that would like to style a strong tag in a line of an ordered table.

A

ol li strong { }

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

Please use a combined CSS and class selector to style a paragraph that has the class name brain.

A

p.brain { }

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

Please use a combined CSS and class selector to style the elements (the tags) in a paragraph that has the class name brain.

A

p .brain { }

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

What are pseudo classes?

A

Are classes that a re recognised by the browsers.

Ex hover (when hovered over an element), clicked (when clicked), focus (at the moment of clicking).

Syntax:

a:hover {
background-color: rgb(255, 214, 255);

}

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

What is a CSS Pseudo element, give an example and the syntax.

A

A pseudo elemtn is an element that is by default undestood by the browser.

selector: :pseudo-element { property:value; }
p: :first-line { }

Pseudo selectors:

17
Q

List the following tags:

bold

paragraph

italic

header 2

brake

ordered list

unordered list

comment

A

bold

paragraph

italic

header 2

brake

ordered list

unordered list

comment <!--the comment-->

18
Q

How do you highlite a part of the text and if clicked put in a link.

A

text

The attributes are:

href - it

19
Q

Present the syntax of a CSS element

A