HTML QUIZ QUESTIONS
Which character is used to define an end tag?
/
Which doctype is correct for HTML5?
<!DOCTYPE html>
How can you open a link in a new tab/browser window?
<a href="url" target="_blank">
Correct HTML for creating a hyperlink
<a href="url">UrlTitle</a>
HTML element for playing audio files?
<audio>
What is the correct HTML for adding a background color?
<body style="background-color:yellow;">
HTML for inserting background image?
<body style="background-image:url(background.gif)">
HTML element for inserting a break line?
<br>
HTML element to define emphasized text
<em>
HTML element used to specify a footer for a document or section?
<footer>
HTML Element for the largest heading?
<h1>
Which HTML element is used to specify a header for a document or section?
<header>
HTML for inserting an image?
<img src="image.gif" alt="My Image">
HTML for making a checkbox?
<input type="checkbox">
HTML for making a drop-down list
<input type="dropdown">
HTML for making a text input field?
<input type="text"> only has one line (area has multiple)
HTML for making a text area
<input type="textbox">
Which MTL element is used to display a scalar measurement within range?
<meter>
Which HTML element defines navigation links?
<nav>
How can you make a numbered list?
<ol>
HTML element to define important text
<strong>
Which of these elements are all table elements?
<table><tr><td>
HTML element that describes title of document?
<title>
How can you make a bulleted list?
<ul>
HTML element for playing video files?
<video>
In HTML, what does the <aside> element define?
Content aside from the page content
In HTML, onblur and onfocus are event attributes
Event attributes
What does HTML Stand for ?
Hyper Text Markup Language
An <iframe> is used to display a web page within a web page.
True
HTML comments start with <!-- and end with -->
True
In HTML, you can embed SVG elements directly into an HTML page.
True
Inline elements are normally displayed without starting a new line?
True
Who is making the web standards?
World Wide Web Consortium
Graphics defined by SVG is in which format?
XML
HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
alt
HTML <canvas> element is used to:
draw graphics
Block elements are normally displayed without starting a new line.
false
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
The HTML global attribute, "contenteditable" is used to:
specify whether the content of an element should be editable or not