HTML Quiz
What is the correct HTML for making a text input field? <input type="textfield"> <input type="text"> <textinput type="text"> <textfield>
<input type="text">
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed? longdesc src title alt
alt
Which input type defines a slider control? range slider search controls
range
What is the correct HTML for making a text area? <textarea> <input type="textbox"> <input type="textarea">
<textarea>
Which HTML element defines navigation links? <navigation> <nav> <navigate>
<nav>
What does HTML stand for? Hyper Text Markup Language Home Tool Markup Language Hyperlinks and Text Markup Language
Hyper Text Markup Language
What is the correct HTML element for playing video files? <video> <media> <movie>
<video>
Which HTML element defines the title of a document? <meta> <title> <head>
<title>
How can you make a bulleted list? <dl> <list> <ol> <ul>
<ul>
What is the correct HTML for inserting a background image? <body style="background-image:url(background.gif)"> <background img="background.gif"> <body bg="background.gif">
<body style="background-image:url(background.gif)">
Choose the correct HTML element to define important text <important> <i> <b> <strong>
<strong>
What is the correct HTML element for inserting a line break? <br> <break> <lb>
<br>
Which doctype is correct for HTML5? <!DOCTYPE HTML5> <!DOCTYPE html> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
<!DOCTYPE html>
What is the correct HTML for creating a hyperlink? <a name="http://www.w3schools.com">W3Schools.com</a> <a href="http://www.w3schools.com">W3Schools</a> <a>http://www.w3schools.com</a> <a url="http://www.w3schools.com">W3Schools.com</a>
<a href="http://www.w3schools.com">W3Schools</a>
What is the correct HTML element for playing audio files? <mp3> <sound> <audio>
<audio>
Choose the correct HTML element to define emphasized text <italic> <em> <i>
<em>
Choose the correct HTML element for the largest heading: <head> <h6> <heading> <h1>
<h1>
What is the correct HTML for inserting an image? <img href="image.gif" alt="MyImage"> <img alt="MyImage">image.gif</img> <image src="image.gif" alt="MyImage"> <img src="image.gif" alt="MyImage">
<img src="image.gif" alt="MyImage">
What is the correct HTML for making a checkbox? <input type="checkbox"> <check> <checkbox> <input type="check">
<input type="checkbox">
Which HTML element is used to display a scalar measurement within a range? <meter> <measure> <gauge> <range>
<meter>
What is the correct HTML for making a drop-down list? <input type="list"> <list> <input type="dropdown"> <select>
<select>
How can you open a link in a new tab/browser window? <a href="url" new> <a href="url" target="_blank"> <a href="url" target="new">
<table><tr><td>
Who is making the Web standards? Mozilla The World Wide Web Consortium Google Microsoft
The World Wide Web Consortium
Inline elements are normally displayed without starting a new line. True False
True
In HTML, you can embed SVG elements directly into an HTML page. True False
True
Which character is used to indicate an end tag? ^ * < /
/
An <iframe> is used to display a web page within a web page. There is no such thing as an <iframe> True False
True
Which HTML element is used to specify a header for a document or section? <section> <header> <head> <top>
<header>
Which HTML element is used to specify a footer for a document or section? <section> <bottom> <footer>
<footer>
How can you make a numbered list? <ol> <dl> <list> <ul>
<ol>
In HTML, what does the <aside> element define? The ASCII character-set; to send information between computers on the Internet A navigation list to be shown at the left side of the page Content aside from the page content
Content aside from the page content
Block elements are normally displayed without starting a new line. True False
True
HTML comments start with <!-- and end with --> True False
True
The HTML <canvas> element is used to: draw graphics manipulate data in MySQL create draggable elements display database records
draw graphics
The HTML global attribute, "contenteditable" is used to: Specify whether the content of an element should be editable or not Return the position of the first found occurrence of content inside a string Specifies a context menu for an element. The menu appears when a user right-clicks on the element Update content from the server
Specify whether the content of an element should be editable or not
What is the correct HTML for adding a background color? <body bg="yellow"> <background>yellow</background> <body style="background-color:yellow;">
<body style="background-color:yellow;">
In HTML, onblur and onfocus are: Event attributes Style attributes HTML elements
Event attributes
Graphics defined by SVG is in which format? HTML CSS XML
XML
In HTML, which attribute is used to specify that an input field must be filled out? placeholder formvalidate validate required
required