Podcast
Questions and Answers
What HTML element is used to define a list of items with a description for each?
What HTML element is used to define a list of items with a description for each?
<dl>
The <dt>
element is used to define the term in a definition list.
The <dt>
element is used to define the term in a definition list.
True (A)
The <dd>
element is used to define the closing element in a definition list.
The <dd>
element is used to define the closing element in a definition list.
False (B)
Which of the following are NOT valid attribute values for the autocomplete
attribute in HTML5?
Which of the following are NOT valid attribute values for the autocomplete
attribute in HTML5?
Which of the following are valid attribute values for the method
attribute in HTML5?
Which of the following are valid attribute values for the method
attribute in HTML5?
What does the accept-charset
attribute in HTML5 specify?
What does the accept-charset
attribute in HTML5 specify?
Which of the following are valid attribute values for the target
attribute in HTML5?
Which of the following are valid attribute values for the target
attribute in HTML5?
What HTML tag is used to create a clickable button in forms?
What HTML tag is used to create a clickable button in forms?
Flashcards
Unordered List Tag
Unordered List Tag
An unordered list in HTML is equivalent to using bullets in Microsoft Office. List items are marked with special symbols like circles, squares, or triangles.
List Tags
List Tags
HTML uses tags for lists to create itemizing or giving details, just like using lists in Microsoft Office. There are three main list tags in HTML: ordered, unordered, and definition.
Ordered List
Ordered List
An ordered list in HTML is similar to the numbering feature in Microsoft Office. Each list item is marked with a number or letter, creating a numbered list.
Definition List Tag
Definition List Tag
Signup and view all the flashcards
Table Tags
Table Tags
Signup and view all the flashcards
Hyperlinks
Hyperlinks
Signup and view all the flashcards
Embedded Link
Embedded Link
Signup and view all the flashcards
Inline Link
Inline Link
Signup and view all the flashcards
Random Accessed Link
Random Accessed Link
Signup and view all the flashcards
Hardware Accessed Link
Hardware Accessed Link
Signup and view all the flashcards
Target Attribute
Target Attribute
Signup and view all the flashcards
Target Attribute - _blank
Target Attribute - _blank
Signup and view all the flashcards
Target Attribute - _self
Target Attribute - _self
Signup and view all the flashcards
Target Attribute - _parent
Target Attribute - _parent
Signup and view all the flashcards
Target Attribute - _top
Target Attribute - _top
Signup and view all the flashcards
Title Attribute
Title Attribute
Signup and view all the flashcards
Event Attributes
Event Attributes
Signup and view all the flashcards
Clipboard Events
Clipboard Events
Signup and view all the flashcards
oncopy Event
oncopy Event
Signup and view all the flashcards
oncut Event
oncut Event
Signup and view all the flashcards
onpaste Event
onpaste Event
Signup and view all the flashcards
onselect Event
onselect Event
Signup and view all the flashcards
onsubmit Event
onsubmit Event
Signup and view all the flashcards
Keyboard Events
Keyboard Events
Signup and view all the flashcards
onkeydown Event
onkeydown Event
Signup and view all the flashcards
onkeypress Event
onkeypress Event
Signup and view all the flashcards
onkeyup Event
onkeyup Event
Signup and view all the flashcards
Media Events
Media Events
Signup and view all the flashcards
onabort Event
onabort Event
Signup and view all the flashcards
oncanplay Event
oncanplay Event
Signup and view all the flashcards
oncanplaythrough Event
oncanplaythrough Event
Signup and view all the flashcards
oncuechange Event
oncuechange Event
Signup and view all the flashcards
Mouse Events
Mouse Events
Signup and view all the flashcards
onclick Event
onclick Event
Signup and view all the flashcards
ondblclick Event
ondblclick Event
Signup and view all the flashcards
onmousedown Event
onmousedown Event
Signup and view all the flashcards
onmousemove Event
onmousemove Event
Signup and view all the flashcards
onmouseout Event
onmouseout Event
Signup and view all the flashcards
onmouseover Event
onmouseover Event
Signup and view all the flashcards
onmouseup Event
onmouseup Event
Signup and view all the flashcards
onwheel Event
onwheel Event
Signup and view all the flashcards
Study Notes
HTML List Tags
- HTML5 uses list tags for itemization and details
- Ordered Lists use numbers or letters to mark items
<ol></ol>
tags enclose ordered lists<li></li>
tags define each list item- Unordered Lists use symbols to mark items
<ul></ul>
tags enclose unordered lists<li></li>
tags define each list item- Definition Lists pair terms with descriptions
<dl></dl>
tags enclose definition lists<dt>
tags define terms (no closing tag)<dd>
tags describe terms (no closing tag)
HTML Tables
- Tables are structured with
,
, , and elements defines the table itself
defines a table row defines a header cell defines a data cell Hyperlinks
- Hyperlinks allow users to jump to other documents or sections
- Links have anchors and directions
- Visited links are underlined and purple
- Active links are underlined and red
- Unvisited links are underlined and blue
Link Types
- Embedded links use code to link to content
- Inline links display remote content without embedding
Title Attributes
- Title attributes provide additional information about an element
Event Attributes
- Event attributes in HTML5 apply to many elements
- They trigger JavaScript execution on specific events (e.g., keyboard, form, media events)
Drag Events
ondrag
- applies when an element is draggedondragend
- applies at the end of a drag operationondragenter
- applies when an element is dragged to a valid drop targetondragover
- applies when an element is dragged over a valid drop targetondragstart
- applies at the start of a drag operationondragleave
- applies when the element being dragged leaves a drop target
Form Events
- Form events refer to user interactions with HTML forms
onblur
- applies when an element loses focusonchange
- applies when an element's value changesoncontextmenu
- triggered when a context menu arisesonfocus
- applies when an element gains focusoninput
- applies when a user input occursoninvalid
- triggered when an element is invalidonreset
- when the reset button is clickedonsearch
- triggered when the user writes something in the search field
Media Events
- Media events are triggered by media elements (videos, images, audio)
onabort
- applies during an abortoncanplay
- plays when enough buffered content is available to beginoncanplaythrough
- plays content without pausing for bufferingoncuechange
- when the cue changesonended
- when media is finishedonerror
- if any error is triggeredonloadeddata
- when metadata loadsonloadedmetadata
- when metadata is loadedonloadstart
- when media playback startsonpause
- when playback pauses
Keyboard Events
- Keyboard events occur when a user interacts with the keyboard
onkeydown
- applies when pressing a keyonkeypress
- applies when a key is pressedonkeyup
- applies when a key is released
Clipboard Events
- Clipboard events react to clipboard modifications
oncopy
- when the user copies contentoncut
- when the user cuts contentonpaste
- when the user pastes content
Input Types and Tags
<input>
tag declares and processes input data
Data List
<datalist>
tag provides pre-defined options for an input field
No Validation Attribute
- The
novalidate
attribute prevents form validation upon submission
Autocomplete
- Autocomplete helps browsers anticipate user input and fill in values
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
More Like This