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 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
4
Q

what is the purpose of the DOCTYPE declaration?

A

to declare the document/code type

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

Give 5 examples of HTML element tags

A

head, body, html, p, div

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 give elements specific characteristics

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

& + reg for registered trademark

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

By beginning on a new line every time a new one is introduced and taking up as much space as possible

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

by squeezing in between text content, or other elements and only taking as much space as needed

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

what are the default height and width of a block level element?

A

width: 100
height: auto

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

what are the default height and width of an inline element?

A

width: auto
height: auto

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

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

A
ordered = numbered, in order
unordered = bulleted, not in order
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Is an HTML List a block or inline element?

A

Block

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

What html element is used to link to another website?

A

a (anchor) element

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

What is an absolute URL?

A

A path that leads outside of the original viewport/workspace to another website entirely

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

What is a relative URL?

A

A path that leads to a file locally within the viewport/workspace

17
Q

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

A

by using ../(child)

18
Q

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

A

by using parent/child

19
Q

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

A

by using ../../(grandchild)

20
Q

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

A

By just using the name of the file
Ex:
index.html

21
Q

What is the purpose of an HTML form element?

A

to create the foundation and contain all the elements and content to create forms within HTML

22
Q

Give 5 examples of form control elements

A

textarea, input, option, button, select

23
Q

Give 3 examples of type attributes for HTML input elements

A

email, submit, checkbox

24
Q

Is an HTML input element block or inline?

A

inline

25
Q

What are the six primary HTML elements for creating tables?

A

td, th, table, tbody, tr, tfoot

26
Q

What purpose do the tbody and thead elements serve?

A

tbody: to hold the body of the table
thead: to hold the heading of the table

27
Q

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

A

Financials, graduation statistics