HTML Flashcards

1
Q

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

A

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

In 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

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

To let the browser know what type of document this is.

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

To provide more information about the element

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

What is an HTML entity?

A

Special characters and characters that may disrupt the flow of the HTML document. Copyright and Trademark and Angle Brackets are examples.

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

How do block-level elements affect the document flow?

A

Block-level elements will start on a new line and the element that follows will also start on a new line.

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

How to inline elements affect the document flow?

A

Inline elements continue on the same line as their neighboring elements.

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

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

A

Default width is the maximum wdith available. Default height is equal to the height of its contents.

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 an inline element?

A

The default height and width is the minimum amount of space necessary for the contents of the element.

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

What is the difference between an ordered list and an unordered list in HTML

A

Ordered lists have a specific order to the list items, unordered lists do not.

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

What HTML tag is used to link to another website?

A

The < a > tag

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

What is an absolute URL?

A

The full web address for a new/different website

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

What is a relative URL?

A

The shorthand way to access/link another page of the same website/on your 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

. . / followed by folder/file name

17
Q

How do you indicate the relative link a child directory?

A

Use the name of the child folder, followed by a forward slash, then the file name.

18
Q

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

A

Repeat the . . / to indicate that you want to go up two folders (rather than one), then follow with the folder/file name.

19
Q

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

A

Just use the file name (nothing else is needed).

20
Q

What is the purpose of an HTML Form element?

A

Allows you to collect information from the user.

21
Q

Give 5 examples of form control elements.

A

< input >, < textarea >, < select >, < option >, < button >.

22
Q

Give 3 examples of type attributes for HTML < input > elements.

A

radio, text, checkbox, password, file, submit, image, date, email, url, search.

23
Q

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

A

Inline Element.

24
Q

What are the 6 primary HTML elements for creating tables?

A

< table >, < tr >(table row), < td >(table data), < th >(table heading), < thead >, < tbody >

25
Q

What purpose do the < thead > and < tbody > elements serve?

A

< thead > element defines a set of rows defining the head of the columns of the table. < tbody > element encapsulates a set of table rows (< tr > elements), indicating that they comprise the body of the table.

26
Q

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

A

stocks, Sports results, financial reports, employee schedules, student grades, movie times