HTML Flashcards

1
Q

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

A

-In the head!
-Inside the <head> element!
-<head>
NON-VISABLE CONTENT HERE
</head>

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!
-Inside the <body> element.
-<body>
VISABLE CONTENT HERE
</body>

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

-Inside the <html> element.
-<html>
<head></head>
<body></body>
</html>

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 tell the browser which version of html to read the document!

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

Give five examples of HTML element types.

A

head, body, p, img, div, span, h1, ul, li, and so many more!

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

To give more information about an element.

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

<, >, -, :, ?, ®, 1

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 the whole width of a document. Which means a new block-level element will start on its own line.

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 will stay on the same line its currently in, and only takes up the width of the content of the 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

The default width of a block-level element is the entire width of the document and the height is the height of the content.

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 of an inline element is the width and height of its content.

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 lists are lists that are numbered. Unordered lists are lists that are not numbered, but use bullet points or dashes, etc.

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

An HTML list is a block element.

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 is used to link to another website. The href attribute is used to specify the website’s URL.
<a href=’https://example.com”></a>

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

What is an absolute URL?

A

An absolute URL is a URL that takes you 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

A relative URL is a URL that takes you to a different webpage within the same domain.

17
Q

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

A

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

18
Q

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

A

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

19
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 it with the
file name.

20
Q

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

A

To link to a file in the same folder, just use the file
name. (Nothing else is needed.)

21
Q

What is the purpose of an HTML form element?

A

To get information from someone using your website.

22
Q

Give five examples of form control elements.

A

<input></input>, <label>, <button>, <select>, <textarea></textarea></select></button></label>

23
Q

Give three examples of type attribute values for HTML <input></input> elements.

A

<input></input>, <input></input>, <input></input>

24
Q

Is an HTML <input></input> element a block element or an inline element?

A

An HTML <input></input> element is an inline-block element, which is an inline element.

25
Q

What are the six primary HTML elements for creating tables?

A

<thead>, <tbody>, <th>, <td>, <tr>, <table>
</table></tr></td></th></tbody></thead>

26
Q

What purpose do the thead and tbody elements serve?

A

The <thead> HTML element defines a set of rows defining the head of the columns of the table.

27
Q

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

A

Financial reports, TV schedules, sports results