Html Flashcards
Event that fires when a document is closed?
onunload
Event that fires when an element changes?
onchange
Event that fires when a form is reset
onreset
Event that fires when an element is selected
onselect
Event that fires when a form is submitted
onsubmit
Event that fires when loading of an image is interrupted
onabort
Event that fires when a key is pressed
onkeydown
Event that fires when a key is pressed and released
onkeypress
Event that fires when a key is released
onkeyup
Event that fires on a mouse double-click
ondblclick
Event that fires when mouse button is pressed
onmousedown
Event that fires when mouse pointer moves
onmousemove
Event that fires when mouse pointer moves out of an element
onmouseout
Event that fires when mouse button is released
onmouseup
The <title>, <meta>, and <style> elements are used where?
Inside the <head> element.
What are attributes for <script>?
"src charset defer language "
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.”
What are the only type of elements to go directly inside of the <body> element?
Block, not inline, elements.
What are the top three elements on an HTML page?
"<html> <head> </head> <body> </body> </html>"
What element always needs to be inside the <head> element?
<title>
What HTML tag is used for comments?
<! … >
What is a HTML block element?
Block elements are always displayed as if they have a linebreak before and after the element.
What is a HTML inline element?
Inline elements appear within the flow of the text on the page.
<address>
“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.”