Html Flashcards

1
Q

Event that fires when a document is closed?

A

onunload

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

Event that fires when an element changes?

A

onchange

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

Event that fires when a form is reset

A

onreset

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

Event that fires when an element is selected

A

onselect

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

Event that fires when a form is submitted

A

onsubmit

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

Event that fires when loading of an image is interrupted

A

onabort

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

Event that fires when a key is pressed

A

onkeydown

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

Event that fires when a key is pressed and released

A

onkeypress

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

Event that fires when a key is released

A

onkeyup

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

Event that fires on a mouse double-click

A

ondblclick

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

Event that fires when mouse button is pressed

A

onmousedown

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

Event that fires when mouse pointer moves

A

onmousemove

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

Event that fires when mouse pointer moves out of an element

A

onmouseout

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

Event that fires when mouse button is released

A

onmouseup

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

The &lttitle&gt, &ltmeta&gt, and &ltstyle&gt elements are used where?

A

Inside the &lthead&gt element.

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

What are attributes for &ltscript&gt?

A
"src
charset
defer
language
"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are attributes of &ltimg&gt ?

A

“&ltimg src=”“smiley.gif”” alt=”“Smiley face”” height=”“42”” width=”“42”” /&gt

src=”“file_name””
alt=”“description_text””
width=”“#_pixels””
height=”“#_pixels””

The value of alt is displayed if file_name cannot be displayed.”

18
Q

What are the only type of elements to go directly inside of the &ltbody&gt element?

A

Block, not inline, elements.

19
Q

What are the top three elements on an HTML page?

A
"&lthtml&gt
&lthead&gt
&lt/head&gt
&ltbody&gt
&lt/body&gt
&lt/html&gt"
20
Q

What element always needs to be inside the &lthead&gt element?

A

&lttitle&gt

21
Q

What HTML tag is used for comments?

A

&lt! … &gt

22
Q

What is a HTML block element?

A

Block elements are always displayed as if they have a linebreak before and after the element.

23
Q

What is a HTML inline element?

A

Inline elements appear within the flow of the text on the page.

24
Q

&ltaddress&gt

A

“The <address> tag defines the contact information for the author or owner of a document. This way, the reader is able to contact the document’s owner.

The <address> element is usually added to the header or footer of a webpage.”

25
Q

&ltblockquote&gt

A

Used for multiline quotations. Creates a separate block and indents the text.

26
Q

&ltcode&gt

A

The HTML code tag is used for indicating a piece of code. The code tag surrounds the code being marked up.

27
Q

&ltdiv&gt

A

Used to group block-elements , usually to format them with a style.

28
Q

&ltdl&gt

A

“HTML tag for a definition list.

Each item in the list will have a term &ltdt&gt and a description &ltdd&gt.”

29
Q

&ltem&gt

A

“HTML tag
&ltem&gt … &lt/em&gt

Emphasis.”

30
Q

&lthr&gt

A

“The &lthr&gt tag creates a horizontal line in an HTML page.

The &lthr&gt element can be used to separate content in an HTML page.”

31
Q

&ltlink&gt

A

“A HTML element used to link a CSS stylesheet with a document.

Has the following attributes:
href
rel
type
title
media"
32
Q

&ltnoscript&gt

A

???

33
Q

&ltpre&gt

A

“The &ltpre&gt tag defines preformatted text.

Text in a &ltpre&gt element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.”

34
Q

&ltq&gt

A

“&ltq&gt … &lt/q&gt

This inline tag adds double quotes to text. Indicates text is a quotation.”

35
Q

&ltstrong&gt

A

Renders as strong (highlighted) text.

36
Q

BOM

A

Browser Object Model

37
Q

CSS

A

Cascading Style Sheets

38
Q

Definition of an HTML element?

A

opening tag + content + closing tag

39
Q

DOM

A

Document Object Model

40
Q

How is a linebreak generated in HTML?

A

&ltbr&gt

41
Q

How is a link created in HTML?

A

&lta href=”file_name”&gt link_name&lt/a&gt

42
Q

onload

A

A &ltbody&gt or &ltframeset&gt event that occurs when a document is loaded.