HTML Flashcards

1
Q

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

A

Between the head element tags.

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

Between the body element tags.

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

Between the html tags, with the head tags coming first and the body tags after.

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

Tells the browser what type.of document it is reading.

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

Attributes give more information about the content of the element.

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

Give five examples of HTML element tags.

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

A

h1, ul, p, em, li

& amp; - ampersand

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

How do block-level elements affect the document flow?

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

A

Block-level elements start on new lines. Default width is 100% and height is auto.

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

How do inline elements affect the document flow?

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

A

Inline elements stay in the same line, do not start a new line. Default width and height is 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 list items are numbered while unordered list items are bulleted.

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

List items are block elements.

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

The anchor tag.

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

What is an absolute URL?

A

A full URL link to a web page including the domain name.

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

What is a relative URL?

A

A relative URL is a link to other pages on the same site.

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?

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

A

../ - link to a parent directory

../../ - link to grand parent directory

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

child-directory/target-file

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 the same directory?

A

target-file name

17
Q

What is the purpose of an HTML form element?

A

To contain form control elements and receive input from the user.

18
Q

Give five examples of form control elements.

A

input, text-area, select, option, image

19
Q

Give three examples of type attributes for HTML input elements.

A

radio, checkbox, text

20
Q

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

A

HTML input elements are inline

21
Q

What are the six primary HTML elements for creating tables?

A

table, thead, tbody, tr, th, td,

22
Q

What purpose do the thead and tbody elements serve?

A

Distinguish between main section and first and last rows, easier styling for these sections