HTML Flashcards

1
Q

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

A

Inside the «a>head</a>> tag.

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

Inside the «a>body</a>> tag.

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

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

A

Inside the «a>html</a>> tag.

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

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

A

To tell the browser what kind of type the document is.

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>head</a>>, «a>body</a>>, «a>h1</a>>, «a>p</a>>, and «a>image</a>> tags.

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 provide additional information for the 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 (escape character).

A

“& amp ;” is &

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-level elements take up the whole width of its parent element and begins a new line after.

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 only takes as much space as its contents, and another element can exist in the same line should there be enough space.

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 of a block-level element is 100% of the width of its parent element.

Default height of a block-level element is equal to the height of its contents.

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

Default width and height of an inline element are equal to that of its contents.

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 list: Lists the items by numbers/letters.

Unordered list: Lists the items by 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

An HTML list is a block element.

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>a</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

An absolute URL is the URL path that contains all the information necessary to locate the resource including the domain.

External Navigation.

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

What is a relative URL?

A

A relative URL is the URL path that can be used when the resource is in the same directory as the document.

It contains the location of the resource.

Internal Navigation.

17
Q

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

A

../file-name

18
Q

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

A

Directory-name/file-name

19
Q

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

A

../../file-name

20
Q

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

A

Simply type in the file-name of the document you are trying to link to.

21
Q

What is the purpose of an HTML «a>form</a>> element?

A

To collect data from the users.

To group the contents in the form.

22
Q

Give five examples of form control elements.

A

«a>input</a>>, «a>textarea</a>>, «a>option</a>>, «a>button</a>>, and «a>select</a>>.

23
Q

Give three examples of type attributes for HTML «a>input</a>> elements.

A

Checkbox, password, and text.

24
Q

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

A

An HTML «a>input</a>> element is an inline element.

25
Q

What are the six primary HTML elements for creating tables?

A

«a>table</a>>, «a>thead</a>>, «a>tbody</a>>, «a>th</a>>, «a>tr</a>>, and «a>td</a>>.

26
Q

What purpose do the «a>thead</a>> and «a>tbody</a>> elements serve?

A

The «a>thead</a>> and «a>tbody</a>> elements serve to organize tables into relative chunks.

27
Q

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

A

Employee List

Sport Statistics