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

A

To tell the browser what HTML version is being used

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

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

A

Ordered lists are numbered like steps while unordered list are listed in bullet points with no particular steps

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

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

A

Block element since each list starts in a new line

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

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

A

Width will be 100% which is full width of its whole block, height is however many line it takes for the content to fill up or “auto”

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

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

A

Auto for both

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

Give an example of an HTML entity (escape character).

A

© for copyright symbol, ® for registered trademark

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

What is the purpose of HTML attributes?

A

They modify HTML element type

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

How do block-level elements affect the document flow?

A

They affect the flow by starting every element on a new line. It is useful for clear organization.

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

How do inline elements affect the document flow?

A

They affect the flow by allowing multiple spaces to be taken within the same lines and take as much space as needed.

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

Give five examples of HTML element tags.

A

Html, body, head, title, h1

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

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

A

../ follow by the file name

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

A

File name/file name

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

A

../../ follow by the file name

17
Q

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

A

Just the file name

18
Q

What is the purpose of an HTML form element?

A

To control submitting info

19
Q

Give five examples of form control elements

A

textarea, input, select, option, button

20
Q

Give three examples of type attributes for HTML elements

A

Type=radio, type=checkbox, type=submit

21
Q

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

A

inline element

22
Q

Why is the difference between parameter and argument?

A

Parameter act as placeholder while argument does not

23
Q

How can you tell the difference between call and definition?

A

definition has code block