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?

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

To format the web browser for HTML

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>, <title>, <body>, <h1>, <p>
</p></h1></body></title></head>

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 provide more information for 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

Copyright / trademark symbol

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

How do block-level elements effect the document flow?

A

Block-level elements start on a new line

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

How do inline elements effect the document flow?

A

Inline elements change the text in the same line of code and stay within the line

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

Whatever the parent container is (can be changed)

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

Whatever the content is (can’t be changed)

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: numbered lists in steps or specific order
Unordered: uses bullet points, no order

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 inline element?

A

Block element

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

What is the difference between and ordered list and an unordered list in HTML?

A

Ordered list: has a certain order to it
Unordered list: has no order, uses bullet points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
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
16
Q

What HTML tag is used to link to another website?

A

The anchor tag <a></a>

17
Q

What is an absolute URL?

A

A URL that goes to a different website

18
Q

What is a relative URL?

A

A URL that navigates within the website

19
Q

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

A

. . /filename

20
Q

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

A

childfolder/filename

21
Q

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

A

. . /. . /filename

22
Q

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

A

filename

23
Q

What is the purpose of an HTML |form| element?

A

To collect information from users

24
Q

Give five examples of form control elements.

A

Adding text, making choices, submitting forms, uploading files, passwords

25
Q

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

A

Radio, checkbox, file

26
Q

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

A

Inline

27
Q

What are the six primary HTML elements for creating table?

A

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

28
Q

What purpose do the |thead| and |tbody| element serve?

A

|thead| and |tbody| help break up the table between the head and the body. And for screen readers

29
Q

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

A

Sports scores, grades, money