Html Practice
<label>
Defines a label for an <input> element
<li>
Defines a list item
<i>
Defines a part of text in an alternate voice or mood
<code>
Defines a piece of computer code.
<base>
Specifies the base URL/target for all relative URLs in a document.
<dir>
Defines a directory list
<font>
Defines font, color, and size for text
<col>
Specifies column properties for each column within a <colgroup> element
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
alt
<p>
Defines a paragraph
<span>
Defines a section in a document
<q>
Defines a short quotation
In HTML, onblur and onfocus are:
Event Attributes
Block elements are normally displayed without starting a new line.
False
<fieldset>
Groups related elements in a form
<tbody>
Groups the body content in a table
<dfn>
Represents the defining instance of a term
<canvas>
Use to draw graphics, on the fly, via scripting (usually JavaScript)
Graphics defined by SVG is in which format?
XML
<colgroup>
Specifies a group of one or more columns in a table for formatting
<datalist>
Specifies a list of pre-defined options for input controls
<figure>
Specifies self-contained content
<main>
Specifies the main content of a document
The HTML global attribute, "contenteditable" is used to:
Specify whether the content of an element should be editable or not.
What is the correct HTML for creating a hyperlink?
<a href="http://www.w3schools.com">W3Schools</a>
Which of these elements are all <table> elements?
<table><tr><td>
Which HTML element defines the title of a document?
<title>
<td>
Defines a cell in a table
<script>
Defines a client-side script
<menuitem>
Defines a command/menu item that the user can invoke from a popup menu
<picture>
Defines a container for multiple image resources
<time>
Defines a date/time
<optgroup>
Defines a group of related options in a drop-down list
<th>
Defines a header cell in a table
<menu>
Defines a list/menu of commands
<textarea>
Defines a multiline input control (text area)
<param>
Defines a parameter for an object
<wbr>
Defines a possible line-break
<tr>
Defines a row in a table
<ruby>
Defines a ruby annotation (for East Asian typography)
<meter>
Defines a scalar measurement within a known range (a gauge)
<section>
Defines a section in a document
<select>
Defines a section in a document
<table>
Defines a table
<title>
Defines a title for the document
<var>
Defines a variable
<video>
Defines a video or movie
<summary>
Defines a visible heading for a <details> element
<noscript>
Defines an alternate content for users that do not support client-side scripts
<object>
Defines an embedded object
<rt>
Defines an explanation/pronunciation of characters (for East Asian typography)
<img>
Defines an image
<iframe>
Defines an inline frame
<input>
Defines an input control
<option>
Defines an option in a drop-down list
<ol>
Defines an ordered list
<ul>
Defines an unordered list
<big>
Defines big text
<strong>
Defines important text
<meta>
Defines metadata about an HTML document
<source>
Defines multiple media resources for media elements (<video> and <audio>)
<nav>
Defines navigation links
<pre>
Defines preformatted text
<samp>
Defines sample output from a computer program
<small>
Defines smaller text
<style>
Defines style information for a document
<sub>
Defines subscripted text
<sup>
Defines superscripted text
<s>
Defines text that is no longer correct
<u>
Defines text that should be stylistically different from normal text
<track>
Defines text tracks for media elements (<video> and <audio>)
<output>
Defines the result of a calculation
<rp>
Defines what to show in browsers that do not support ruby annotations
<tfoot>
Groups the footer content in a table
<thead>
Groups the header content in a table
<bdo>
Overrides the current text direction
<progress>
Represents the progress of a task
What is the correct HTML for making a text input field?
<input type="text">
Which HTML element is used to display a scalar measurement within a range?
<meter>
What is the correct HTML element for playing video files?
<video>
Which character is used to indicate an end tag
/
Which doctype is correct for HTML5?
<!DOCTYPE html>
What is the correct HTML for adding a background color?
<body style="background-color: yellow;">
What is the correct HTML for inserting a background image?
<body style="background-image:url(background.gif)">
Which HTML element is used to specify a header for a document or section?
<header>
In HTML, what does the <aside> element define?
Content aside from the page content.
<h1> to <h6>
Defines HTML headings
<div>
Defines a section in a document
<bdi>
Isolates a part of the text that might be formatted in a different direction from other text outside it.
What is the correct HTML element for inserting a line break?
<br>
Choose the correct HTML element to define emphasized text
<em>
Which HTML element defines navigation links?
<nav>
How can you make a numbered list?
<ol>
What is the correct HTML for making a drop-down list?
<select>
Choose the correct HTML element to define important text
<strong>
HTML comments start with <!-- and end with -->
True
The HTML <canvas> element is used to:
draw gaphics
What is the correct HTML for inserting an image?
<img src="image.gif" alt="MyImage">
What is the correct HTML for making a checkbox?
<input type="checkbox">
What is the correct HTML for making a text area?
<textarea>
How can you make a bulleted list?
<ul>
<legend>
Defines a caption for a <fieldset> element
<figcaption>
Defines a caption for a <figure> element
<map>
Defines a client-side image-map
<!-- -->
Defines a comment
<embed>
Defines a container for an external (non-HTML) application
<dl>
Defines a description list
<dialog>
Defines a dialog box or window
<hr>
Defines a thematic change in the content
<details>
Defines additional details that the user can view or hide
<form>
Defines an HTML form for user input
<area>
Defines an area inside an image-map
<b>
Defines bold text
<center>
Defines centered text
<article>
Defines content aside from the page content
Inline elements are normally displayed without starting a new line.
True
Which input type defines a slider control?
range
In HTML, which attribute is used to specify that an input field must be filled out?
required
<keygen>
Defines a key-pair generator field (for forms)
<blockquote>
Defines a section that is quoted from another source
<br>
Defines a single line break
<button>
Defines a single line break
<caption>
Defines a table caption
<dt>
Defines a term/name in a description list
<ins>
Defines a text that has been inserted into a document.
<aside>
Defines content aside from the page.
<em>
Defines emphasized text
<head>
Defines information about the document
<kbd>
Defines keyboard input
<mark>
Defines marked/highlighted text
How can you open a link in a new tab/browser window?
<a href="url" target="_blank">
What is the correct HTML element for playing audio files?
<audio>
<footer>
Defines a footer for a document or section
<header>
Defines a header for a document or section
<a>
Defines a hyperlink
<!DOCTYPE>
Defines the document type.
<body>
Defines the document's body
<link>
Defines the relationship between a document and an external resource (most used to link to style sheets)
<html>
Defines the root of an HTML document
<dd>
Defines a description/value of a term in a description list
<audio>
Defines sound text
<del>
Defines text that has been deleted from a document
<cite>
Defines the title of a work
What does HTML stand for?
Hyper Text Markup Language
Which HTML element is used to specify a footer for a document or section?
<footer>
Choose the correct HTML element for the largest heading.
<h1>
Who is making the Web standards?
The World Wide Web Consortium
An <iframe> is used to display a web page within a web page.
True
In HTML, you can embed SVG elements directly into an HTML page.
True
