Html Flashcards Preview

IT > Html > Flashcards

Flashcards in Html Deck (42):
1

Event that fires when a document is closed?

onunload

2

Event that fires when an element changes?

onchange

3

Event that fires when a form is reset

onreset

4

Event that fires when an element is selected

onselect

5

Event that fires when a form is submitted

onsubmit

6

Event that fires when loading of an image is interrupted

onabort

7

Event that fires when a key is pressed

onkeydown

8

Event that fires when a key is pressed and released

onkeypress

9

Event that fires when a key is released

onkeyup

10

Event that fires on a mouse double-click

ondblclick

11

Event that fires when mouse button is pressed

onmousedown

12

Event that fires when mouse pointer moves

onmousemove

13

Event that fires when mouse pointer moves out of an element

onmouseout

14

Event that fires when mouse button is released

onmouseup

15

The <title>, <meta>, and <style> elements are used where?

Inside the <head> element.

16

What are attributes for <script>?

"src
charset
defer
language
"

17

What are attributes of <img> ?

"<img src=""smiley.gif"" alt=""Smiley face"" height=""42"" width=""42"" />

src=""file_name""
alt=""description_text""
width=""#_pixels""
height=""#_pixels""

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

18

What are the only type of elements to go directly inside of the <body> element?

Block, not inline, elements.

19

What are the top three elements on an HTML page?

"<html>
<head>
</head>
<body>
</body>
</html>"

20

What element always needs to be inside the <head> element?

<title>

21

What HTML tag is used for comments?

<! ... >

22

What is a HTML block element?

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

23

What is a HTML inline element?

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

24

<address>

"The
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
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.