HTML Flashcards

1
Q

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

A

In the <head> element

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 the <body> element

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

What is the purpose of a <!DOCTYPE> declaration?

A

To tell the page what kind of document it is

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

Give 5 examples of HTML elements.

A

<body>, <head>, <div>, <span>, <html>
</html></span></div></head></body>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
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
6
Q

What two parts make up an attribute?

A

Name=”value”

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

What are the default width and height of a block-level element?

A

100% for both height and width.

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

What are the default width and height of an inline element?

A

However much space they need (aka auto.)

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

What is the difference between a unordered list and an ordered list?

A

unordered is bullet points and ordered list is numbered or “sequenced”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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
11
Q

what HTML tag is used to link to another website?

A

anchor element or <a></a>

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

What is an absolute link?

A

A link that leads to another website.

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

What is a relative link?

A

A link to a file inside your workspace (folders in your code)

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

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

A

../

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

What is the purpose of an HTML form element?

A

it’s a boundary to hold content.

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

Give five examples of form control elements.

A

input, select, textarea, button, and option

17
Q

Give three examples of type attributes.

A

radio, checkbox, and email

18
Q

Is an HTML <input></input> element a block element or an inline element?

A

inline

19
Q

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

A

name of child folder/file name

20
Q

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

A

../../file name

21
Q

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

A

file name

22
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, tbody,

23
Q

What purpose do the thead and tbody elements serve?

A

They organize tables and specify each part of the table.

24
Q

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

A

financial reports, stock info, (many answers)

25
Q

Give an example of an escape character.

A

&

26
Q

Where do the head and body tags go in a valid HTML document?

A

the head will always be above the body.

27
Q

How do block level elements affect the document flow?

A

they always start on a new line.

27
Q

How do block level elements affect the document flow?

A

they always start on a new line.

28
Q

How do inline elements affect the document flow?

A

They do not force a new line to begin.

28
Q

How do inline elements affect the document flow?

A

They do not force a new line to begin.