HTML Flashcards

1
Q

Where does non-visible content go in an HTML document?

A

Head

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

Body

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

head under html, body under head

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

what version of HTML the page is written in.

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

Give five examples of HTML element tags.

A

div, p, h1, body, head, html

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

HTML attributes provide additional information about HTML elements.

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

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

Forces a line break, and takes up the entire width

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

does not force a new line to begin

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

Width: Entire horizontal
Height: As necessary

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

Width: As necessary
Height: As neccessary

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

What HTML tag is used to link to another website?

A

a tag defines a hyperlink, the href attribute indicates destination

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

What is an absolute HTML URL?

A

contains all the information necessary to locate a resource.

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

What is a relative URL?

A

Using previous information, it’s shortened and the browser fills the gaps

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

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

A

../ or dot dot forward slash

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

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

A

name of child folder, followed by forward slash, then file

17
Q

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

A

../../ or 2x dot-dot-forward slash

18
Q

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

A

just the file name only

19
Q

What is the purpose of an HTML form element?

A

Holds our info, in a border

20
Q

Give five examples of form control elements.

A

input, select, option, text area, button

21
Q

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

A

inline element

22
Q

What are the six primary HTML elements for creating tables?

A

table, thead, tbody, th, tr, td

23
Q

What purpose do the thead and tbody elements serve?

A

thead info of columns, tbody encapsulates the rows

24
Q

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

A

Sports, accounting, excel