HTML Flashcards

1
Q

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

A

Within the head tags

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

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

A

Within 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

Within the HTML tags, head above body

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

What is the purpose of the declaration?

A

It tells the browser what language the file is in.

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

Give 5 examples of HTML element types.

A
head
body
h1
p
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?

A

They provide additional information about the contents of an element.

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

Give an exampleof an HTML entity.

A

The cent sign, using ¢ or ¢

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 a new line for the entire width of that 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 fit within the content, and do not affect the document flow directly.

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

Width: entire page
Height: the height of the content within the block

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

Width/Height: determined by the size of the content

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?

A

An ordered list begins each line with an alphanumeric character to designate the given order.
An unordered list begins each line with the same bullet, box, arrow, etc. that does not denote any order.

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

<a></a>

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

What is an absolute URL?

A

A link that directs the user to an outside resource/website.

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

What is a relative URL?

A

A link that directs the user to a different page within the same website.

17
Q

What is the purpose of an HTML form element?

A

represents a document section containing interactive controls for submitting information

18
Q

Give five examples of form control elements.

A
input
select
textarea
option
button
19
Q

Give three examples of type attribute values for HTML elements.

A

radio
checkbox
text

20
Q

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

A

inline-block element (inline, but can be resized as needed)

21
Q

What are the six primary HTML elements for creating tables?

A
table
thead
tbody
th
tr
td
22
Q

What purpose do the thead and tbody elements serve?

A

thead and tbody elements provide document flow as well as semantic information on the given table. thead also comes with default styles in certain browsers to designate the section as a header.

23
Q

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

A

Sports statistics

Expense reports in accounting