HTML Flashcards

1
Q

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

A

Within 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

Within the body element

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 element as child elements

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

To specify the 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

5 examples of HTML elements

A

body, title, p, h1, div

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

To customize the behavior of HTML elements

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

What is an example of an HTML entity (escape character)?

A

& lt ; (no spaces)

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

It occupies the entire horizontal space of its parent element and vertical space equal to the height of its container

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

Only takes up as much width as necessary and does NOT start on a new line

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

Default width and height of a 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

Default width and height of an inline element

A

Auto

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

Difference between an ordered list and an unordered list

A

Ordered lists are numbered while unordered lists use 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

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

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

The full path of a URL linking to an external website

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

What is a relative URL?

A

Directories within the same website or project

17
Q

Indicate the relative link to a parent directory

A

../fileName

18
Q

Indicate the relative link to a child directory

A

Name of child folder followed by a forward slash and the file name

19
Q

Indicate the relative link to a grand parent directory

A

../../fileName

20
Q

Indicate the relative link to the same directory

A

fileName

21
Q

The purpose of an HTML form element

A

To collect user information or data

22
Q

Five examples of form control elements

A

select, option, input, text area, button

23
Q

Three examples of type attribute values for HTML < input > elements

A

text, radio, checkbox

24
Q

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

A

Inline element

25
Q

Six primary HTML elements for creating tables

A

< table >, < tr >, < td >, < th >, < thead >, < tbody >

26
Q

Purpose of the thead element

A

Defines a set of rows for the head of the columns of the table

27
Q

Purpose of the tbody element

A

Defines a set of rows that make up the body of the table

28
Q

Two examples that would lend itself well to being displayed in a table

A

Calendar, financial report