HTML Flashcards

1
Q

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

A

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

In the body.

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

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

A

goes after !DOCTYPE and the opening tag and closes before the opening body tag. The starts after the closing tag and closes before the closing tag.

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

What is the purpose of a declaration?

A

To declare which version of HTML 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

<p>, <strong>, , <h1>, <div></div></h1></strong></p>

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

©

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

They take an entire line on the webpage.

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

They only take up as much room as there is content.

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

Width: Auto / Height: Auto

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

Ordered list (ol) lists items such as 1. , 2. , 3 . etc. Unordered lists (ul) lists items as bullet points.

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

What HTML tag is used to link to another website?

A

<a> tag</a>

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

What is an absolute URL?

A

Includes domain name.

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

What is a relative URL?

A

Navigation within the same domain.

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

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

A

../directory name

17
Q

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

A

Child directory name/file name

18
Q

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

A

../../file name

19
Q

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

A

File name

20
Q

What is the purpose of an HTML form element?

A

Enclosure for form control elements

21
Q

Give five examples of form control elements.

A

Input, text area, option, select, button

22
Q

Give three examples of type attributes for HTML elements.

A

Text, email, submit

23
Q

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

A

Inline

24
Q

What are the six primary HTML elements for creating tables?

A

Table, tr, td, th, thead, tbody

25
Q

What purpose do the thead and tbody elements serve?

A

Used as a divider. (semantic description)

26
Q

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

A

Stocks, sports data.