HTML Flashcards

1
Q

 Doctype: Required as the first line of an HTML document (historical artifact).

A

.

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

 Root Element: Follows the “doctype” and wraps around all content on the entire page.

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

 Head Element: Container for things that do not appear as viewable content (e.g., keywords and descriptions that will appear in search results, CSS, character set declarations, etc.).

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

 Character Set: Allows document to use “utf-8” character set, which includes most characters from all known human languages (nests within head element).

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

 Title: Sets the title that appears in browser tab (nests within head element).
• Also appears as the search result in Google.

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

 Body: Contains all of the content that will be shown to the viewer.

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

o Elements (give examples)

A

(content + opening/closing tags)

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

 Block Elements (Give Examples)

A

form a visible block on a page (e.g., paragraphs, lists, navigation menus, footers, etc.):

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

• Paragraph

A

<p></p>

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

• Divider

A

<hr></hr>

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

• Headings:
o NOTE: As a general rule, try to have only one <h1> tag in your HTML document, and it should be the biggest text element on the page.
</h1>

A

<h1> through <h6></h6></h1>

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

• Generic Container:

A

<div></div>

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

• Lists

each item within a type of list needs to be identified by this tag

A

<li> </li>

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

o Ordered Lists (lists that are numbered)

A

<ol></ol>

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

o Unordered Lists (lists composed of bullet points

A

<ul></ul>

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

• Tables:

A
17
Q

o Table Row:

A
18
Q

o Table Header (consists of one cell within a row):

A

Should be nested within under main table (semantics).

19
Q

o Table Data (consists of one cell within a row):

A

Should be nested within under main table (semantics).

20
Q

o Borders can be added by entering

A

,

although this is discouraged, as CSS should be used for styling.

21
Q

• Forms (interactive controls to submit information to a web server):

A