HTML Flashcards

1
Q

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

A

Non-visible content goes in 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

Visible content goes in 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

Head elements go inside the html element. The body tag follows the head 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

The doctype declaration lets the browser know what 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

a, p, h1-h6, span, div, img, button

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

HTML attributes tells more about the content of that element. Attributes contain a name and a value (two parts separated by an equal sign)

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

Copyright symbols, 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 take up a new line every time.

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

Inline elements can share the same line as long as the other elements allow it.

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

The default width is 100 percent. The default height is 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

The default width and height is 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 have numbers for each list item. Unordered list just use bullet points (can be changed to other types of 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

HTML List (ul,ol,li) are all block elements.

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

Html a tag 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 an absolute URL?

A

Absolute URL are used to link to a different website.

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

What is a relative URL?

A

Relative URL are used to link to pages within the same site.

17
Q

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

A

By using ../, it will access the parent directory.

18
Q

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

A

By using / followed by the child’s folder name.

19
Q

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

A

By using ../ and then followed by another ../

20
Q

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

A

By using / followed by the name of the link.

21
Q

What is the purpose of an HTML form element?

A

To collect information from visitors

22
Q

Give five examples of form control elements.

A

Input, label, select, textarea, button, fieldset, legend, option

23
Q

Give three examples of type attributes for HTML input elements.

A

button, checkbox, date, email, file, image, password, radio, submit, text

24
Q

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

A

Inline, input elements can be side by side.

25
What are the six primary HTML elements for creating tables?
Table, thead, tbody, tr, th, td
26
What purpose do the thead and tbody elements serve?
The thead holds the heading of the table. The tbody holds the rest of the table data.
27
Give two examples of data that would lend itself well to being displayed in a table.
Stocks, sports scores, grades, weather