HTML Flashcards

1
Q

HTML Skeleton

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

HTML Skeleton

Where do you put visible content about the HTML document?

A

Within the body element. (does not mean everything in the body element is visible. ex) <div> element)
</div>

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

HTML Skeleton

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

A

Between opening and closing tags for HTML element.

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

HTML Skeleton

What is the purpose of a declaration?

A

To tell what version of HTML is declared.

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

HTML Syntax

Give five examples of HTML element types.

A

footer, main, header, mark, p, img

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

HTML Syntax

What is the purpose of HTML attributes?

A

Attributes provide additional information about the content of an element.

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

HTML Syntax

Give an example of an HTML entity (escape character).

A

< : less-than sign (& l t ; )

> : greater-than sign (& g t ;)

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

HTML Block and Inline

How do block-level elements affect the document flow?

A

A block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents. The block-level element starts on a new line.

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

HTML Block and Inline

How do inline elements affect the document flow?

A

Inline element allows adjacent element in inline (Share with other inline elements).

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

HTML Block and Inline

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

A

Default width is 100% and height is auto.

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

HTML Block and Inline

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

A

The default width and height of an inline element are auto.

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

HTML Lists

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

A

The ordered list is in number and unordered list is in a bullet point.

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

HTML Lists

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

A

A block element.

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

HTML Links

What HTML tag is used to link to another website?

A

a element

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

HTML Links

What is an absolute URL?

A

The absolute URL is when you link to a different website and starts with the domain name for that site.

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

HTML Links

What is a relative URL?

A

The relative URL is when you link to other pages within the same site.

17
Q

HTML Relative Links

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

A

Use ../ to indicate the folder about the current one, then follow it with the file name.

18
Q

HTML Relative Links

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

A

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

19
Q

HTML Relative Links

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

A

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

20
Q

HTML Relative Links

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

A

Just use the file name

21
Q

HTML Forms

What is the purpose of an HTML form element?

A

To collect information from visitors and to contain information in one form.

22
Q

HTML Forms

Give Five examples of form control elements

A

select, textarea, button, options, input

23
Q

HTML Forms

Give three examples of type attribute values for HTML input elements

A

radio, search, submit, checkbox, date

24
Q

HTML Forms

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

A

Inline element

25
HTML Tables What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, tbody
26
HTML Tables What purpose do the thead and tbody elements serve?
Help people who use screen readers and also allow you to style these section in a different manner than the rest of the table. thead and tbody are structural and help in a search engine context.
27
HTML Tables Give two examples of data that would lend itself well to being displayed in a table
person and their age, calendars, financial report, stock, sports score board... They are all made in tabular data