HTML Flashcards

1
Q

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

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?

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?

A

The head goes at the top, below the doctype declaration and html tag
The body will come after the head tag

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

It lets us know what version of HTML you are using

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

!DOCTYPE, head, body, footer, ul, li

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

Attribute tell us more information about 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

& with copy © is the copyright symbol and & with reg ® is the registered trademark symbol

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 always start on a new 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 continue in the same line as their neighboring elements

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

The width of its parent element and the height of its content

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

The height and width of its 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 in HTML?

A

An ordered list is numbered while and unordered list has 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

Lists are block elements because they start on new line

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

What is a relative URL?

A

A relative URL is a link to a file within the same domain

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 links to an exact webpage using the entire URL

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

What HTML tag is used to link to another website?

A

The anchor or a tag is used to link to another website

17
Q

What is the purpose of an HTML form element?

A

Forms allow users to search for or input information

18
Q

Give five examples of form control elements.

A

Form, input, textarea, select, option, button

19
Q

Give three examples of type attribute values for HTML input elements

A

id, type, name

20
Q

Is an HTML input element a block or inline element?

A

Inline element

21
Q

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

A

../parentdirectory.file

22
Q

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

A

ParentDirectory.file/ChildDirectory.file

23
Q

How do you indicate the relative to a grandparent directory?

A

../../grandparentdirectory.file

24
Q

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

A

nameOfFile.file

25
Q

What are the six primary HTML elements for creating tables?

A

tr, td, th, thead, tbody, tfoot

26
Q

What purpose do the thead and tbody elements serve?

A

The thead contains the rows that represent the heading of each column of the table.
The tbody contains the tables rows that represent the data that should be displayed in the table.

27
Q

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

A

Stocks and banking spending reports