HTML Flashcards

1
Q

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

A

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

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

The opening head tag is placed between the opening html and body tags. The body tag is placed between the closing head and html tags.

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

Informs browser that this is an HTML document.

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

div tag, a tag, img tag, p tag, h1 tag

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

Attributes provide additional information about the contents of 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

& ®

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 will always appear to start on a new line in the browser window.

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 always appear to continue on the same line as their neighboring elements.

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

100% for width, auto for height.

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

Auto for width and height.

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 where each item in the list is numbered. Unordered lists are lists that begin with a bullet point.

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

Block

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

a tag

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

What is an absolute URL?

A

Contains protocols, domains, other information necessary to locate resource.

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

What is a relative URL?

A

Doesn’t contain any protocol or machine information. Its path generally refers to a resource on the same machine as the current document.

17
Q

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

A

Use ../ to indicate that you want to go up one folder, then follow it with the file name.

18
Q

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

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

A

../../ to indicate that you want to go up two folders, then follow it with the file name.

20
Q

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

A

To link a file in the same folder, just use the file name.

21
Q

What is the purpose of an HTML form element?

A

Allows you to collect information from visitors to your site. Allows you to submit information to server.

22
Q

Give five examples of form control elements.

A

Text input, password input, text area, radio buttons, checkboxes.

23
Q

Give three examples oftypeattributes for HTMLelements.

A

text, password, radio, button, checkbox.

24
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, tbody

25
Q

What purpose do thetheadandtbodyelements serve?

A

Table head, Table body. Semantic purposes. Make code easier to read.

26
Q

Is an HTMLelement a block element or an inline element?

A

Inline, can share space with other elements.

27
Q

What is semantic html?

A

Descriptive tags that will allow the reader of the document to easily understand what section certain code belongs to. Also helps with accessibility (color blind, voice reader).