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