HTML Flashcards

1
Q

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

A

Non-visible content about the HTML document goes inside of 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

Visible content about the HTML document goes inside of 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

The head and body tags of a valid HTML document go inside the html tags.

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

The purpose of a !DOCTYPE declaration is to inform the browser as to what type of document it is reading.

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

head, body, div, h1, and p are all examples of HTML element tags.

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

HTML attributes provide additional information about HTML elements.

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

An example of an HTML entity (escape character) is © which is the copyright symbol.

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

A block-level element affects the document flow by always starting a new line and taking up the full width available.

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

An inline element does not start a new line and only takes up as much width as necessary.

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

The default width of a block-level element is the entire horizontal space from left-to-right. The default height of a block-level element is equal to the height of its content.

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

The default width of an inline element is the space bounded by the tags defining element. The default height of an inline element is equal to the height of its content.

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

An ordered list displays list items numbered sequentially, whereas an unordered list displays list items with a bullet point preceding each item.

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

An HTML list is a block-level element.

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

An a tag is used to link to another website.

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

What is an absolute URL?

A

An absolute URL contains all the information necessary to locate a resource and usually begins with HTTPS, HTTP, or WWW.

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

What is a relative URL?

A

Does not use the full web address and only contains the location following the domain. The relative path starts with the forward slash and leads the browser to stay within the current site.

17
Q

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

A

../file_name

18
Q

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

A

folder_name/file_name

19
Q

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

A

../../file_name

20
Q

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

A

file_name

21
Q

What is the purpose of an HTML form element?

A

The purpose of an HTML form element is to give a form its structure and handle user input.

22
Q

Give five examples of form control elements.

A

Some examples of form control elements are; input, label, select, textarea, and button.

23
Q

Give three examples of type attributes for HTML input elements.

A

Some examples of type attributes for HTML input elements include; text, button, and checkbox.

24
Q

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

A

An HTML input element is a block-level element.

25
Q

What are the six primary HTML elements for creating tables?

A

The six primary HTML elements for creating tables are; table, thead, tbody, tr, th, and td.

26
Q

What purpose do the thead and tbody elements serve?

A

These elements distinguish rows that serve as table headers and the area in which table data is added.

27
Q

Give two examples of data that would lend itself well to being displayed in a table.

A

Financial data and sports statistics are two examples that would lend themselves well to being displayed in a table.