html 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 the 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, with the head first and the body after.

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

what is the purpose of the declaration?

A

to tell the browser which version of html the page is using.

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

img, p, div, span, h1.

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

provide additional information about the contents of an 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.

A

© for the copyright symbol.

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 elements always appear on a new line.

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 appear on the same line as their neighboring elements.

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

block level elements take up the whole line.

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

inline elements only take up as much space as needed.

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 in html?

A

ordered lists are numbered and unordered lists use bullet points.

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

lists are block elements.

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

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

what is an absolute url?

A

A url that links to a page outside of the current website

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

what is a relative url?

A

A url that links to a page within the current website

17
Q

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

A

../

18
Q

how to you indicate the relative link to a child

A

nameOfChildFolder/fileName

19
Q

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

A

../../

20
Q

how do you indicate the relative link to the same directory

A

just the file name or ./fileName

21
Q

what is the purpose of an html form element?

A

to collect information from users

22
Q

give 5 examples of form control elements

A

input, select, option, button, textarea

23
Q

give 3 examples of type attributes for html input elements

A

password, email, submit

24
Q

is an html input element a block element or an inline element

A

input is an inline element

25
Q

what are the 6 primary html elements for creating tables?

A

table, tr, td, th, thead, tbody,

26
Q

what purpose do the thead and tbody elements serve?

A

thead contains the head of the table and tbody contains the body of the table

27
Q

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

A

schedules, financial data