HTML 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 but 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

Inside the <html> tag one above the other

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

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

A

To tell server which version of HTML it’s using

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 more information about the contents of the element

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

Tend to take up all the space

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 dont

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

The space of its container

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

The space bounded by defining the element

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

What is the difference of an ordered list and an unordered list?

A

Ordered list is number
Unordered is bulleted

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

Is an HTML list a block or inline element?

A

Block

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

What HTML tag is used to link another website?

A

Anker tag <a></a>

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

What is an absolute URL?

A

Take you to the website no matter what

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

What is a relative URL?

A

Urls that only includes the path

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

../

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

folder-name/file-name

17
Q

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

A

../../

18
Q

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

A

File Name

19
Q

What is the purpose of an HTML form element?

A

To gather information

20
Q

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

A

Inline

21
Q

What are the six primary HTML elements for creating tables?

A

<table></table>

<tr></tr>

<td></td>

<th></th>

<thead></thead>

<tbody></tbody>

22
Q

What purpose do the <thead> and <tbody> elements serve?

A

Organize the head and body of a table