HTML Flashcards

1
Q

Where do you put non-visible content about the HTML document?
(html-skeleton)

A

Within the Head 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?

html-skeleton

A

Within the Body tag.

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?

html-skeleton

A

Within the HTML tag.

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

What is the purpose of a declaration?

html-skeleton

A

It declares that the rest of the document will be in HTML.

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

Give five examples of HTML element tags.

html-syntax

A

Div, Html, Body, Script, Head, Title.

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

What is the purpose of HTML attributes?

html-syntax

A

They provide more information about the elements; Like grouping them.

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

How do block-level elements affect the document flow?

html-block-and-inline

A

They take up all the space between the tags.

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

How do inline elements affect the document flow?

html-block-and-inline

A

They only take up as much space as needed between the tags.

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?
(html-block-and-inline)

A

Both are 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?

html-block-and-inline

A

Both are 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?
(html-lists)

A

Ordered: The text-content is numbered
Unordered: The text-content isn’t numbered

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?
(html-lists)

A

Ordered: The text-content is numbered
Unordered: The text-content isn’t numbered.

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?

html-lists

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?

html-links

A

Anchor tag (a).

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

What is an absolute URL?

html-links

A

a URL that typically links to a different webpage.

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

What is a relative URL?

html-links

A

A URL that links to other areas of your webpage.

17
Q

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

html-relative-links

A

You use “../” to go back one directory.

18
Q

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

html-relative-links

A

You use current link’s name/link’s name

19
Q

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

html-relative-links

A

You use the file’s name.

20
Q

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

html-relative-links

A

You use the file’s name or a ‘./’

21
Q

What is the purpose of an HTML form element?

html-forms

A

To say the code between the elements will be a form

22
Q

Give five examples of form control elements.

html-forms

A

input, label, textarea, button, option, select.

23
Q

Give three examples of type attributes for HTML form elements.
(html-forms)

A

Email, button, url, password, text, file.

24
Q

Is an HTML input element a block element or an inline element?
(html-forms)

A

Inline.

25
Q

What purpose do the thead and tbody elements serve?

html-tables

A

To separate the elements, so you can focus on them specifically

26
Q

Give two examples of data that would lend itself well to being displayed in a table.
(html-tables)

A

Sports results, stock

reports, train timetables.