Quiz Questions Flashcards

1
Q

Where do you put non-visible content about the HTML document?

A

In the head element

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

Where do you put visible content about the HTML document?

A

In the body element

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

Where do the and tags go in a valid HTML document?

A

between the tags

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

What is the purpose of a declaration?

A

to let web browser know what version of HTML the page is written in

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

Give five examples of HTML element tags.

A

<p> </p>

<h1> <a></a></h1>

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

What is the purpose of HTML attributes?

A

to modify element type / provide functionality

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

Give an example of an HTML entity (escape character).

A

©

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

How do block-level elements affect the document flow?

A

contained by row, takes full width of page

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

How do inline elements affect the document flow?

A

contained within the element’s dimensions

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

What are the default width and height of a block-level element?

A

height is the element’s height, width is page width

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

What are the default width and height of an inline element?

A

width and height of the element

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

What is the difference between an ordered list and an unordered list in HTML?

A

OL is in order by ABC, 123, etc. and UO is bulleted list

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

Is an HTML list a block element or an inline element?

A

Block

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

What HTML tag is used to link to another website?

A

<a></a>

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

What is an absolute URL?

A

an address to a specific link on the web

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

What is a relative URL?

A

an address relative to the file currently in on local

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

How do you indicate the relative link to a parent directory?

A

”..”

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

How do you indicate the relative link to a child directory?

A

child folder name then file

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

How do you indicate the relative link to a grand parent directory?

A

../../

20
Q

How do you indicate the relative link to the same directory?

A

file name

21
Q

What is the purpose of an HTML form element?

A

to group all part of a single form (inputs, buttons, etc.) together

22
Q

Give five examples of form control elements.

A
23
Q

Give three examples of type attributes for HTML elements.

A

radio, checkbox, text

24
Q

Is an HTML element a block element or an inline element?

A

inline

25
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, thead, tbody, tfoot

26
Q

What purpose do the thead and tbody elements serve?

A

separates between the head and body components of the table

27
Q

Give two examples of data that would lend itself well to being displayed in a table.

A

grades, population distribution

28
Q

What are the names of the individual pieces of a CSS rule?

A

rule set and declaration block

29
Q

In CSS, how do you select elements by their class attribute?

A

”.”

30
Q

In CSS, how do you select elements by their type?

A

p{

31
Q

In CSS, how do you select an element by its id attribute?

A

”#”

32
Q

Name three different types of values you can use to specify colors in CSS.

A

keywords, RGB, hexadecimal

33
Q

What CSS properties make up the box model?

A

border, margin, padding

34
Q

Which CSS property pushes boxes away from each other?

A

margin

35
Q

Which CSS property add space between a box’s content and its border?

A

padding

36
Q

What is a pseudo-class?

A

a “subsidiary” of a class that depends on an action or state of that class

37
Q

What are CSS pseudo-classes useful for?

A

style changes depending on what happens to that class

38
Q

Name at least two units of type size in CSS.

A

pixel, em, percentages

39
Q

What CSS property controls the font used for the text inside an element?

A

font-family

40
Q

What does the term “source order” mean with respect to CSS?

A

order that CSS rules are written in stylesheet

41
Q

How is it possible for the styles of an element to be applied to its children as well without an additional CSS rule?

A

inheritance

42
Q

List the three selector types in order of increasing specificity.

A

type, class, ID

43
Q

Why is using !important considered bad practice?

A

makes debugging difficult and breaks natural cascading

44
Q

What is the default flex-direction of a flex container?

A

row

45
Q

What is the default flex-wrap of a flex container?

A

nowrap

46
Q

Why do two div elements “vertically stack” on one another by default?

A

because they’re box elements