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
<blockquote>
Used for multiline quotations. Creates a separate block and indents the text.
26
<code>
The HTML code tag is used for indicating a piece of code. The code tag surrounds the code being marked up.
27
<div>
Used to group block-elements , usually to format them with a style.
28
<dl>
"HTML tag for a definition list. Each item in the list will have a term <dt> and a description <dd>."
29
<em>
"HTML tag <em> ... </em> Emphasis."
30
<hr>
"The <hr> tag creates a horizontal line in an HTML page. The <hr> element can be used to separate content in an HTML page."
31
<link>
"A HTML element used to link a CSS stylesheet with a document. ``` Has the following attributes: href rel type title media" ```
32
<noscript>
???
33
<pre>
"The <pre> tag defines preformatted text. Text in a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks."
34
<q>
"<q> ... </q> This inline tag adds double quotes to text. Indicates text is a quotation."
35
<strong>
Renders as strong (highlighted) text.
36
BOM
Browser Object Model
37
CSS
Cascading Style Sheets
38
Definition of an HTML element?
opening tag + content + closing tag
39
DOM
Document Object Model
40
How is a linebreak generated in HTML?
<br>
41
How is a link created in HTML?
<a href="file_name"> link_name</a>
42
onload
A <body> or <frameset> event that occurs when a document is loaded.