html Flashcards

1
Q

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

A

in t he 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 a doctype declaration?

A

To denote what kind of document, or tech standard is being used in the content of the page.

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

a element p element img element div element span element etc.

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 modify the properties of 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

® & © ¢ £ € etc.

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

They take up the whole width of the parent element (width set to 100%) and as much as height as they need. (height set to auto)

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

What are the default width and height 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
10
Q

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

A

width auto height auto

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

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

A

An ordered list denotes a list with a sequence e.g. a recipe, an unordered list denotes a list without a sequence, e.g. a shopping list.

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

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

A

block

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

What HTML tag is used to link to another website?

A

a (anchor) tag

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

What is an absolute URL?

A

an absolute url is a url that points to an external web page i.e. https://google.com/

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

What is a relative URL?

A

A relative url is a url that points to an internal resource, i.e. “../documents/taxes.html`

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 parent directory?

A

dot dot

17
Q

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

A

/

18
Q

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

A

../../

19
Q

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

A

./ or just the directory name

20
Q

What is the purpose of an HTML form element?

A

The purpose of the form element is to group input elements together into one chunk (form) to be processed.

21
Q

Give five examples of form control elements.

A

button textarea fieldset input secret

22
Q

Give three examples of type attributes for HTML input elements

A

type checkbox, radio

23
Q

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

A

inline

24
Q

What are the six primary HTML elements for creating tables?

A

table td thead tbody tr tfoot

25
Q

What purpose do the thead and tbody elements serve?

A

the thead element describe important information, often serving as labels for the data contained in the table. The tbody denotes the main content of a table.

26
Q

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

A

Stock prices, Classroom grades.