HTML Flashcards

1
Q

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

A

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

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

they are siblings that are children of 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

tell the browser what version of HTML the page is using

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

html, head, title, body, h1-h6, p…

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

provide additional information about the contents of the 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
o	< 
o	> 
o	& 
o	“ 
o	Cent sign ¢
o	Pound sign £
o	Yen sign ¥
o	Euro sign €
o	Copyright symbol ©
o	Registered trademark symbol ®
o	Trademark symbol ™
o	Left single quote &1squo;
o	Right single quote ’
o	Left double quotes “
o	Right double quotes ”
o	Multiplication sign ×
o	Division sign ÷
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

Start a new line, take up the full width of the available space.

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 do not interrupt the document flow and only take up as much space as they need

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

The full width available and the height of the content

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 width and height of the content

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 are numbered lists where the order is meaningful. examples: recipe, turn by turn directions, legal contract where each point needs to be identified by a section number

Unordered are bulleted lists where the order does not matter.

Tip: To determine which list to use, try changing the order of the list items; if the meaning changes, use ol otherwise can use ul

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 (anchor tag)

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

What is an absolute URL?

A

a web address to an external webpage

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

What is a relative URL?

A

a web address to a page on the current website

17
Q

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

A

href = “../file name”

18
Q

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

A

href = “child directory/file name”

19
Q

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

A

href = “../../file name”

20
Q

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

A

href = “file name”

21
Q

What is the purpose of an HTML form element?

A

collect data from website user

22
Q

Give five examples of form control elements.

A
o	input
o	textarea
o	select
o	option
o	button
23
Q

Give three examples of type attributes for HTML input elements.

A
o	text
o	password
o	radio
o	checkbox
o	file
o	submit
o	image
24
Q

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

A

inline

25
Q

What are the six primary HTML elements for creating tables?

A
o	table
o	thead
o	tbody
o	th
o	tr
o	td
26
Q

What purpose do the thead and tbody elements serve?

A

Separate the header and body of the table

27
Q

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

A

o Timetable

o stats