Elements and Structure Flashcards
Define HTML.
HTML (HyperText Markup Language) is used to give content to a web page and instructs web browsers on how to structure that content.
What is the content of an HTML element?
The information between the opening and closing tags.
What are the opening and closing tags for an HTML element?
- Opening: <h1>
- Closing: </h1>
What are the opening and closing tags for a list item element?
- Opening: <li>
- Closing: </li>
What are list item elements created inside of?
- Ordered Lists ( <ol> )
- Unordered Lists ( <ul> )
What are the opening and closing tags for an ordered list element?
- Opening: <ol>
- Closing: </ol>
What are the opening and closing tags for an unordered list element?
- Opening: <ul>
- Closing: </ul>
What are the opening and closing tags for a video element?
- Opening: <video
- Closing: </video>
What does the <video element do?
It embeds a media player for video playback.
What attribute within the <video element contains the URL to the video?
src
EXAMPLE: <video src=”link”
What attribute within the <video element displays video controls in the media player?
controls
EXAMPLE: <video></video>
Where is the content that shows as a fallback in browsers that don’t support the <video element?
Inside the opening and closing tab
EXAMPLE:
<video>Video Not Supported</video>
What are the opening and closing tags for the emphasis element?
- Opening: <em></em>
- Closing: </em>
Which list element creates a list of items in sequential order?
The Ordered List Element <ol>
Each list item appears numbered by default.
What element is used as a container that divides an HTML document in sections?
The Div Element
<div>
</div>