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

A

Between the <html> and </html> tags, 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

To tell a browser which version of HTML the page is using

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

Give five examples of HTML element types.

A

<body>, <head>, <title>, <h1>, <p>, <strong>, <em>, <img></img>
</em></strong></p></h1></title></head></body>

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

To tell us more about the content of the element

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

<, >, &, ‘,, ™ , ® , ©

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

They each start on a new line

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

The continue on the same line

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 width is the width of the whole line and the height is 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 width and height are the width and 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 and ordered list and an unordered list in HTML?

A

Each item in an ordered list is numbered while each item in an unordered list begin with a bullet point rather than characters that indicate order

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

Block 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

<a> anchor tag</a>

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

What is an absolute URL?

A

A URL that visits a specific page. It starts with the domain name for that site and can be followed by the path to a specific page

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

What is a relative URL?

A

A URL that links to other pages within the same site. They do no need to specify the domain name

17
Q

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

A

Use ../ to indicate the folder above the current one, then follow it with the file name

18
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

19
Q

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

A

Use ../../ followed by the file name

20
Q

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

A

Use just the file name

21
Q

What is the purpose of an HTML form element?

A

To collect information to send to the server

22
Q

Give five examples of form control elements.

A

Radio buttons, checkboxes, drop-down boxes, text input, text area, password input, file input box, submit button

23
Q

Give three examples of type attribute values for HTML <input></input> elements

A

text, password, email, file, radio, checkbox

24
Q

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

A

It is an inline-block element, which is a type of inline element

25
Q

What are the six primary HTML elements for creating tables?

A

<thead>, <tbody>, <tfoot>, <tr>, <td>, <th>
</th></td></tr></tfoot></tbody></thead>

26
Q

What purpose do the thead and tbody elements serve?

A

They are semantic elements, where thead defines a set of rows defining the head of the columns of the table and tbody encapsulates a set of table rows, indicating that they comprise the body of the table.

27
Q

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

A

Financial/stock reports, TV schedules, sports results, train timetables