HTML Flashcards

(28 cards)

1
Q

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

A

in between the head tags

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 between the body tags

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 between the html tags

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

an instruction to the web browser about what version of HTML the page is written in

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

Give five examples of HTML element types

A

p, h1, div, span, img

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

additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want

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

& c ; (copy)

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 force the following elements to the next line.

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 share space on the same line as their neighboring elements if possible.

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: 100%

default height: 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

default width: auto

default height: auto

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

unordered list: has bullet points/ does not have numbers listing the items on the list

ordered list: has numbers representing each item on the list

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

Block

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

a href = “ “ (anchor tag / element)

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 full URL, including protocol ( http / https )

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 a URL that only includes the path.

17
Q

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

A

Use ../ to indicate the folder above the current one, then follow it with the file name.

18
Q

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

A

use the name of the child folder, followed by a forward slash, then the file name.

19
Q

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

A

Repeat the ../ to indicate that you want to go up two folders (rather than one), then follow it with the file name.

20
Q

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

A

just use the file name. (Nothing else is needed.)

21
Q

What is the purpose of an HTML form element?

A

forms also allow users to perform other functions online / interact with the page for data input

22
Q

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

23
Q

Give five examples of form control elements.

A

input, select, textarea, option, button, radio

24
Q

Give three examples of type attribute values for HTML input elements.

A

password, text, email, password, checkbox, search, radio, file

25
Is an HTML input element a block element or an inline element?
Inline
26
What are the six primary HTML elements for creating tables?
table, thead, tbody, tr (table row), td (tale data), th (table heading), and tfoot
27
What purpose do the thead and tbody elements serve?
They help distinguish between the main content of the table, and the first row
28
Give two examples of data that would lend itself well to being displayed in a table.
financial reports, TV schedules, sports results