HTML Flashcards

1
Q

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

A

An ordered list uses numbers while an unordered list uses bullet points

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

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

A

Block element

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

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

A

In the head and title element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

Where do the <head> and <body> tags go in a valid HTML document?

A

Within the html element

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

What is the purpose of a <!DOCTYPE> declaration?

A

To let the browser know which type of HTML it should be reading

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

What is the purpose of HTML attributes?

A

They help give more information about the contents of an element

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 entire horizontal space of it’s parent element and the vertical space equal to the height of it’s content

They start on a new line as well

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

They don’t start on a new line and only take up the space bounded by the tags of the defining element

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

Default width is it taking up the full width available (100%) and default height is based upon the amount of content within the block. (auto)

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

Only takes up the necessary amount of width and height is auto.

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

The anchor tag <a> href=” “</a>

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

What is an absolute URL?

A

When you want to visit a specific page, you link a URL that contains the domains name within it.

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

What is a relative URL?

A

When you include a link to another page on the same site.

Linking to a file located in your own files.

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

../

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 directory followed by /

17
Q

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

A

../../

18
Q

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

A

Use the file name

19
Q

What is the purpose of an HTML form element?

A

Boundary to contain the information of the form

20
Q

Is an HTML <input></input> element a block element or an inline element?

A

Inline element

21
Q

What are the six primary HTML elements for creating tables?

A

thead, tbody, tr, td, table, th

22
Q

What purpose do the thead and tbody elements serve?

A

They are the containers used for containing the content of the table head and table body elements