HTML Flashcards

1
Q

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

A

The non-visible content for the HTML document goes in 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

The visible content about the HTML document goes into 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 tag goes at the top of the HTML document after the tag is declared. The body tag comes after the closing tag of the element.

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

The purpose of the declaration is to tell the browser what version of html is 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

Body, head, title, <h1>, </h1><p></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

Attributes provide additional information for an element. Two parts: a name and a value.

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

Copy right symbol (©)
Registered trademark (®)
Trademark (™)

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 can only begin on new lines. Block-level elements only appear within a .

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

In-line elements can start anywhere in a line.

In-line elements can be used within a block-level element.

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

.

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

.

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 numbers each item in the list. An unordered list just displays each item with a bullet point.

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

A HTML list is a block element since it can only start on a new block.

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

The anchor tag followed by the href attribute is used to link to another website.

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

What is a relative URL?

A

A relative URL refers to a page on the same site. If the file is in the same directory, you just put the name of the file. If the file is in a parent directory, you put ../ before the name of the file.

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

What is a relative URL?

A

A relative URL refers to a page on the same site.

17
Q

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

A

Start with the ../ before putting the file name.

18
Q

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

A

Put the name of the child directory, followed by the file name.

19
Q

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

A

Grandparent directory requires ../../, two ../ before putting the file name.

20
Q

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

A

Put the file name without needing to point which directory it’s in.

21
Q

What is the purpose of an HTML form element?

A

The purpose of a form element is to receive input/information from a user and record it.

22
Q

Give five examples of form control elements.

A

Input, Textarea, Label, Select, Button

23
Q

Give three examples of type attributes for HTML .input. elements.

A

text, password, file, checkbox, date, email, radio

24
Q

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

A

HTML inputs are inline because they can have more than one input on the same line.

25
Q

What are the six primary HTML elements for creating tables?

A

Table, Thead, Tbody, tr, th, td

26
Q

What purpose do the thead and tbody elements serve?

A

Thead establishes the top of the table which will be the first row.
Tbody is the body of the table which has most, if not all of the data.

27
Q

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

A

Sports scores, Test scores, Weather, Stocks