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