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?

20
Q

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

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.

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?

25
What are the six primary HTML elements for creating tables?
table, tr, td, thead, tbody, tfoot
26
What purpose do the thead and tbody elements serve?
separates between the head and body components of the table
27
Give two examples of data that would lend itself well to being displayed in a table.
grades, population distribution
28
What are the names of the individual pieces of a CSS rule?
rule set and declaration block
29
In CSS, how do you select elements by their class attribute?
"."
30
In CSS, how do you select elements by their type?
p{
31
In CSS, how do you select an element by its id attribute?
"#"
32
Name three different types of values you can use to specify colors in CSS.
keywords, RGB, hexadecimal
33
What CSS properties make up the box model?
border, margin, padding
34
Which CSS property pushes boxes away from each other?
margin
35
Which CSS property add space between a box's content and its border?
padding
36
What is a pseudo-class?
a "subsidiary" of a class that depends on an action or state of that class
37
What are CSS pseudo-classes useful for?
style changes depending on what happens to that class
38
Name at least two units of type size in CSS.
pixel, em, percentages
39
What CSS property controls the font used for the text inside an element?
font-family
40
What does the term "source order" mean with respect to CSS?
order that CSS rules are written in stylesheet
41
How is it possible for the styles of an element to be applied to its children as well without an additional CSS rule?
inheritance
42
List the three selector types in order of increasing specificity.
type, class, ID
43
Why is using !important considered bad practice?
makes debugging difficult and breaks natural cascading
44
What is the default flex-direction of a flex container?
row
45
What is the default flex-wrap of a flex container?
nowrap
46
Why do two div elements "vertically stack" on one another by default?
because they're box elements