HTML Flashcards

1
Q

What is the purpose of a declaration?

A

Tell the browser which version is using.

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

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

A

Inside the html element.

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

Give five examples of HTML element types.

A

p, h1, div, br, span

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

Provide additional information about the contents of an element.

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

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

A

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?

A

It always appear to start on a new line.

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?

A

Does not break the flow of the content. Only takes the up as much width as neccesary.

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 is numbered and unordered list begin with a bullet point.

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 element.

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

anchor element

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

What is an absolute URL?

A

Contains all the information necessary to locate a resource.

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

What is a relative URL?

A

Locates a resource using an absolute URL as a starting point.

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

Using (../) followed by the file name.

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

Use the name of the child folder followed by a forward slash, then the file name.

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

Using (../../) followed it with the file name.

17
Q

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

A

Just use the file name.

18
Q

What is the purpose of an HTML form element?

A

Contain interactive controls for submitting information.

19
Q

Give five examples of form control elements.

A

button, input, textarea, select, option.

20
Q

Give three examples of type attribute values for HTML input elements.

A

file, submit, image.

21
Q

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

A

Inline element.

22
Q

What are the six primary HTML elements for creating tables?

A

table, table row(tr), table data(td), table head(thead), table body(tbody)

23
Q

What purpose do the thead and tbody elements serve?

A
thead= define a set of rows defining the head of the columns of the table. Header contents.
tbody= Encapsulates a set of table rows indicating that they compromise the body of the table. Data elements.
24
Q

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

A

sports results, financial reports.