HTML Flashcards

1
Q

[HTML Skeleton]

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

A

Inside the head tags

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

Inside the body tags.

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

[HTML Skeleton]

Where do theheadandbodytags go in a valid HTML document?

A

Inside the html tags.

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

[HTML Skeleton]

What is the purpose of aDOCTYPEdeclaration?

A

To declare the type of document to a browser

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

h1, div, p, title, input, ul, li, span

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

gives further description / details about 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

copyright symbol = ampersand copy semicolon

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

The block-level element will begin on a new line and will take up the whole width of the container, not allowing for other elements to be placed beside it.

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

The inline element will not begin in a new line (if possible) and will only take up the necessary width for it’s content allowing for other elements to be placed beside it if space is available.

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

width: 100%;

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

width: auto;
height: auto;
(width and height of the content)

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

Ordered lists uses numbers or letters for each list item.

Unordered lists uses the same symbol for each list item.

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

Block-level 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

An anchor tag with an href attribute and a link or URL as a value

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

Between the div and p elements, which one is preferable for text?

A

p elements

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

[HTML Links]

What is an absolute URL?

A

An external site with protocol and domain

17
Q

[HTML Links]

What is an absolute URL?

A

A non-local web address accessed through a URL which contains a domain and path to a web page.

18
Q

[HTML Links]

What is a relative URL?

A

An address which points to an internal page; a page that is relative to the current page.

19
Q

[HTML Relative Links]

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

A

../file

20
Q

[HTML Relative Links]

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

A

directory/file

21
Q

[HTML Relative Links]

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

A

../../file

22
Q

[HTML Relative Links]

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

A

filename

23
Q

[HTML Forms]

What is the purpose of an HTML form element?

A

to collect data / information from user

24
Q

[HTML Forms]

Give five examples of form control elements.

A

option, textarea, input, select, button

25
Q

[HTML Forms]

Give three examples oftypeattribute values for HTMLinputelements.

A

radio, text, checkbox, email, password

26
Q

[HTML Forms]

Is an HTMLinputelement a block element or an inline element?

A

inline

27
Q

[HTML Tables]

What are the six primary HTML elements for creating tables?

A
table element (table)
table header (thead)
table row (tr)
th
table body (tbody)
table data (td)
table foot (tfoot)
28
Q

[HTML Tables]

What purpose do thetheadandtbodyelements serve?

A

thead for the titles of columns at the top of a table

tbody for the data in the table