HTML Flashcards

1
Q

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

A

You put non-visible content about the HTML document 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 the visible content about the HTML document?

A

You put the visible content about the HTML document 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

The head and body tags go between / 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

The purpose of a DOCTYPE declaration is to let browsers know which version of HTML is being loaded

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

p, h1-h6, div, span, body, head

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

The purpose of HTML attributes is to provide additional information / modification to 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

ampersand

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

Block level elements affect the document flow by taking the full width of the provided container and beginning on new lines

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

Inline elements are only affected within the area that they are in

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

full width, content height

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

Content width, and content height

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?

A

an ordered list is numbered and order matters

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

Ordered lists, Unordered lists, and List Items are block level (because they start on a new line for each list item)

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

The a tag with the href attribute

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 is one that links to a specific location/domain

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

What is a relative URL?

A

a relative URL is one that is based on directories, ancestry.

../ means up
/ means down

17
Q

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

A

You indicate the relative link to a parent directory with ../ (goes up)

18
Q

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

A

You indicate the relative link to a child directory with a / (goes down)

19
Q

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

A

You indicate the the relative link to a grand parent directory with ../../ (goes up twice)

20
Q

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

A

You indicate the relative link to the same directory with a / (goes down)

21
Q

What is the purpose of an HTML form element?

A

The purpose of an HTML form element is to capture input

22
Q

Give five examples of form control element

A
form
input
select
label
text area
button
23
Q

Give three examples of type attribute values for HTML input elements

A

button, chedckbox, color, date, email, number, password, range, time, url

24
Q

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

A

An HTML input element is an inline element

25
Q

What are the six primary HTML elements for creating tables?

A

table, tr, th, td, thead, tbody

26
Q

What purpose does the thead and tbody elements serve?

A

The purpose of the thead and tbody is for organizing the table

27
Q

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

A

User data, customer data, fitness tracker