HTML Quiz Questions Flashcards

1
Q

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

A

The head element

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

What is the purpose of a doctype declaration?

A

It declares the type of HTML version

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

What is the purpose of HTML attributes?

A

Attributes provide additional information

about the contents of an element

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

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

A

Ampersand: &

Copyright symbol: ©

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

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

A

description term, description definition, description list

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

Give five examples of HTML element tags.

A

Answers vary

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

An ordered list in numbered

An unordered list is bulleted

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

Where do you put visible content about the HTML document?

A

The body element

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

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

A

In the HTML element

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

What is an absolute URL?

A

A URL with a full domain name

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

What is a relative URL?

A

A URL with only folder names

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

What other ways can we use an anchor tag?

A

Navigating to a different part of the web page

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

How do you indicate the parent folder in a path?

A

With a ../

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

How do you indicate the child folder in a path?

A

With a /childFolderName

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

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

A

With a ../../

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

How do you indicate the current folder in a path?

A

Use the file name

17
Q

What are the six primary HTML elements for creating tables?

A
  1. table
  2. table row
  3. table data
  4. t head
  5. t body
  6. table heading
18
Q

What purpose do the thead and tbody elements serve?

A

They help with labeling and screen readers can see them

19
Q

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

A

Anything with data

20
Q

Why are forms useful?

A

They are useful to receive data

21
Q

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

A

For and ID

22
Q

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

A

Select element

23
Q

What is the action of a form?

A

It is the URL for the page on the server that will receive the information in the form when it is submitted.

24
Q

What is the purpose of an HTML form element?

A

To get data

25
Give five examples of form control elements.
1. select 2. input (has a bunch) 3. textarea 4. button 5. form
26
Give three examples of type attributes for HTML elements.
1. radio 2. password 3. text
27
Why would we choose specific element types when we have elements such as div and span which can be used for anything?
Semantics
28
What factors contribute to a well-designed HTML document?
Semantics and organization
29
How do block-level elements affect the document flow?
creates a new line for itself, takes as much space as needed
30
How do inline elements affect the document flow?
Inline takes as little space as it needs to and stay on the same line
31
What are the default width and height of a block-level element?
width would be 100% and height would be auto
32
What are the default width and height of an inline element?
width auto and height is auto
33
What accessibility considerations must be considered when choosing HTML elements?
Accommodating for screen readers