HTML Flashcards

1
Q

What is the purpose of HTML attributes?

A

specified in the start tag, they provide additional information about elements.

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

What are examples of HTML entities?/ escape characters?

A

© & copy ; ® & reg ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • How do block-level elements affect the document flow vs inline elements?
A

Block elements start as new lines and take up the whole width while inline only take as much space as the content.

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

What is the default height of the block element and inline?

A

The default height is the height of the content.

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

What is the difference between UL and OL?

A

unordered lists are bullet points, while ordered lists are numbered.

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

is an HTML list a block or inline element?

A

Block Element.

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

What are the differences between relative and absolute URLs?

A

Relative will navigate within file system, absolute is a URL to a domain.

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

HTML tag to link another page?

A

the a tag.

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

What is the relative link to a parent directory?

A

../filename

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

What is the relative link to a child directory?

A

parentdirectory/filename

“music/listings.html

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

What is the relative link to a grand parent directory?

A

../../filename

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

What is the relative link to the same directory?

A

“index.html”

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

What is the purpose of an HTMLformelement?

A

Collect information from visitors on your website

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

Give five examples of form control elements.

A

textarea, input, button, fieldset, option

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

Give three examples oftypeattribute values for HTMLinputelements.

A

submit, password, radio, text

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

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

A

inline block

17
Q

Name the six primary HTML elements for creating tables

A

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

18
Q

What is the purpose of thead and tbody elements?

A

thead serves as the head for the table, tbody serves as the body.