HTML Flashcards

1
Q

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

A

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

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

In the parent <html> element

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

tells the browser what version of HTML the document is written in.

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

html, head, title, body, h1,

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 elements additional info and provides easier access towards customization in css styling

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

&copy ; , and &reg ;

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

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

Some 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

width: 100% height: 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

width and height: 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 <ol> creates list items <li> with numbers set to be preformed in order, while unordered list <ul> creates list items <li> with bullet 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

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 <a> or anchor tag</a>

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

What is an absolute URL?

A

The full web address for the site is in the href. Always include the “https://”.

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

What is a relative URL?

A

Linking to a resource that is a local file.

17
Q

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

A

Use ../

18
Q

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

A

Use the name of that child directory followed by /

19
Q

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

A

Use ../../

20
Q

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

A

Use the name of the file in the same directory.

21
Q

What is the purpose of an HTML form element?

A

represents a document section containing interactive controls for submitting information.

22
Q

Give five examples of form control elements.

A

input, textarea, select, option, and button.

23
Q

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

A

text, radio, and checkbox

24
Q

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

A

inline element

25
Q

What are the six primary HTML elements for creating tables?

A

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

26
Q

What purpose do the thead and tbody elements serve?

A

organizational and semantics for labeling

27
Q

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

A

Financial reports and Schedules

28
Q

Structural markup

A

the elements that you can use to describe both headings and paragraphs

29
Q

Semantic markup

A

which provides extra information; such as where emphasis is placed in a sentence, that something you have written is a quotation (and who said it), the meaning of acronyms, and so on