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

It tells what version of HTML is being used

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

Give 5 examples of HTML element types.

A

Head, Body, P, IMG, HTML

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

They are used to change HTML elements.

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

& ampersand, © copyright, ® register symbol

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 are stacked on top of another

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

They occur within lines and do not stack on top of one another

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

What are default width and height of a block-level element?

A

Height: Auto and Width: 100% or width of the whole page

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 height is the height of the content and same for the width in other words both values are 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 unordered list in HTML?

A

Ordered Lists are numbered while Unordered Lists are separated by bulletpoints

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

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

A

You would put ../ and then the directory

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

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

A

You would just link the directory and then the file

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

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

A

You would put ../ twice
../../

17
Q

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

A

You would just link the file

18
Q

What is the purpose of an HTML form element?

A

The purpose of a form is to refer to different elements that allow you to collect information from visitors to your site. It also setups boundaries for the form.

19
Q

Give five examples of form control elements.

A

input, text area, option, select, button

20
Q

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

A

text, password, radio

21
Q

Is an HTML input element a block element or an inline element?

A

inline

22
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, tbody, thead

23
Q

What purpose do the thead and tbody elements serve?

A

thead is used for the headings of the table element.
tbody is used for the body element of the table.

24
Q

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

A

Calendar, School schedule