HTML Quiz Questions Flashcards

1
Q

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

A

Within 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

Within 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

Within 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

Declaration of the document type, so the browser knows what to expect

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/context about elements.

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

©

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

What is the difference between an ordered list and an unordered list in HTML?

A

Ordered lists are numbered (1, 2, 3, 4)

Unordered lists are bulleted

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

What three HTML elements do you use to build a description list?

A

< dl >
< dt >
< dd >

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

What is an absolute URL?

A

Links to a website (https)

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

What is a relative URL?

A

Usually a local address, within the same machine such as images in a folder.

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

What other ways can we use an anchor tag?

A

Navigating to a section on the same page

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

How do you indicate the parent folder in a path?

A

”../”

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

How do you indicate the child folder in a path?

A

“/child-folder/”

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

How do you indicate the grand parent folder in a path?

A

”../../”

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

How do you indicate the current folder in a path?

A

”./”

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

What are the six primary HTML elements for creating tables?

A
< table >
< thead >
< tbody >
< th >
< tr >
< td >
17
Q

What purpose do the thead and tbody elements serve?

A

Defines the start of the table headers and the table body

18
Q

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

A

student names + grade

menu + prices

19
Q

Why are forms useful?

A

Ability to receive data from users

20
Q

What attribute do you have to match between a label and an input?

A

< label for = “same”

21
Q

What type of input allows you to select multiple items in a dropdown?

A

< select >

22
Q

What is the action of a form?

A

Defines where data will be sent

23
Q

What is the purpose of an HTML form element?

A

Defines a set of elements to collect data from users

24
Q

Give five examples of form control elements.

A
< form >
< input >
< select >
< option >
< button >
< label >
< datalist >
25
Q

Give three examples of type attributes for HTML < input > elements.

A

< input type=”text”, “radio”, “password”, “file”

26
Q

Why would we choose specific element types when we have elements such as div and span which can be used for anything?

A

To be more descriptive and to make it more intuitive to edit and style different elements

27
Q

What factors contribute to a well-designed HTML document?

A

Well organized/structured code.
Separation of concerns.
Proper use of elements for context and descriptions.