HTML Flashcards

1
Q

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

A

Within the element tag head

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

Within the element tag body

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

Head comes after the opening tag element HTML, and body follows after the ending of the head element

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

What is the purpose of declaring !DOCTYPE?

A

Declaring a Doctype tells the web browser what kind of HTML version is being used

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

head and /head, body and /body, div and /div, p and /p, html and /html, span and /span

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

Provide additional information about elements and are always specified in the start tag

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

trademark sign “ ® “

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 will always take up as much space as they can and start on 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

Inline elements will continue on the same line as their neighbor elements, does not move to next line

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 the block-level element?

A

width = 100% , 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

necessary, follows property of block element

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

What is the difference between ordered lists and unordered lists?

A

Ordered lists are numbered or organized in some way or form, unordered lists are normally bulleted

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

Is an HTML list a block or inline element?

A

HTML list is a block element

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

What is the HTML tag used to link another website?

A

a (anchor tag)

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

What is an absolute URL?

A

Contains the entire address from protocol to domain name

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

What is a relative URL?

A

Relative URLs point to a file relative or a location/directory/file

17
Q

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

A

../

18
Q

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

A

child folder 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

link to same folder, nothing else needed

21
Q

What is the purpose of an HTML form element?

A

Allows users to perform functions online

22
Q

Give five example of control elements.

A

textarea, button, select, input, button

23
Q

Give three examples of type attributes for HTML elements.

A

checkbox, file-input, radio

24
Q

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

A

inline element

25
Q

What are the six primary HTML elements for creating tables?

A

thead, tbody, table, td(table data), tr(table row), th(table header)

26
Q

What purpose do the thead and tbody elements serve?

A

have the headings of the table, allows you to css style sections, have the bodies of the table, allow you to css style sections

27
Q

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

A

Time tables, reports, report cards