HTML 1 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 < head > and < body > tags go in a valid HTML document?

A

in the html element

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

says that the document type is HTML5

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

What is the purpose of HTML attributes?

A

to provide additional information about elements

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

How do block-level elements affect the document flow?

A

They have a new line and take up full width

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

How do inline elements affect the document flow?

A

They take up only as much space as their element needs

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 a block-level element?

A

100% for width, height depends on element needs

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

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

A

As much height and width as is needed for the element

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

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

A

Ordered lists are ordered by number. Unordered lists just have bullet points.

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

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

A

Block element

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

What HTML tag is used to link to another website?

A

anchor tag

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

What is an absolute URL?

A

An entire web address

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

What is a relative URL?

A

The path following the domain, referring to a resource at the same root domain.

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 parent directory?

A

../

dot dot forward slash

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 child directory?

A

child folder name, forward slash, followed by filename

17
Q

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

A

../../

dot dot forward slash followed by dot dot forward slash

18
Q

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

A

filename only

19
Q

What is the purpose of an HTML form element?

A

HTML form element encloses the form and is a document section for submitting information

20
Q

Is an HTML < input > element a block element or an inline element?

A

Inline element

21
Q

What are the six primary HTML elements for creating tables?

A

table, tr, thead, th, td, tbody

22
Q

What purpose do the thead and tbody elements serve?

A

to encapsulate < th > and < tr > elements