HTML Flashcards

1
Q

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

A

Head

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

Body

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

Where do the <head> and <body> tags go in a valid HTML document?

A

In the HTML tag

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

What is the purpose of a <!DOCTYPE> declaration?

A

To tell the browser which version of HTML it should be using

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

How do block-level elements affect the document flow?

A

They will always start on a new line

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

How do inline elements affect the document flow?

A

They will continue on the same line

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

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

A

Width: 100%
Height: Auto

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

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

A

Width: Auto
Height: Auto

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

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

A

Ordered lists are numbered, unordered lists are not (bullet points)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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
11
Q

What HTML tag is used to link to another website?

A

a

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

What is an absolute URL?

A

The full link to a website

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

What is a relative URL?

A

Links to pages within the same website

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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
15
Q

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

A

folder/link

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

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

A

../../

17
Q

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

A

./