NEW
Font size
WorksheetsHTML5 Quiz
Total questions: 30
Worksheet time: 15mins
Which tag defines the root of an HTML5 document?
<html>
<body>
<head>
<main>
Which tag is used for inserting images in HTML?
<picture>
<image>
<img>
<i>
What does the <br> tag do?
Creates a bold line
Inserts a horizontal rule
Breaks the line
Inserts a list
What tag is used to create a hyperlink?
<link>
<a>
<src>
<url>
How many levels of headings are in HTML?
3
5
6
10
Which tag inserts a horizontal line in a webpage?
<border>
<br>
<line>
<hr>
What does represent?
Paragraph
Bold text
Non-breaking space
Bullet point
Which tag is used to create an ordered list?
<ol>
<ul>
<li>
<list>
Which tag defines the document metadata?
<meta>
<data>
<info>
<header>
The src attribute in the <a> tag specifies:
Size of the image
Path to the image file
Text for the image
Shape of the image
Which HTML5 tag is used to define navigation links?
<navigate>
<nav>
<menu>
<link>
Which attribute in a form input suggests previous user input?
autofill
placeholder
autocomplete
autotype
Which of the following is a semantic HTML5 tag?
<html>
<article>
<div>
<span>
The <video> tag requires which attribute to display controls?
toolbar
menu
controls
play
Which tag defines a row in a table?
<table>
<tr>
<td>
<th>
Which attribute provides tooltip
toolkit
img
title
for
What is the correct syntax for linking internally to a section with id 'about'?
<a src="#about">
<a id="#about">
<a href="about">
<a href="#about">
What tag pairs with <input list="options"> to provide suggestions?
<select>
<datalist>
<list>
<optionlist>
Which form input type allows date selection in HTML5?
type='text'
type='calendar'
type='date'
type='day'
Which tag defines the main content of a page?
<main>
<content>
<section>
<div>
Which HTML5 input type is used to collect an email address?
type='text'
type='mail'
type='email'
type='username'
Which element can be used to embed audio?
<music>
<sound>
<audio>
<play>
To group related elements in a form, you use:
<label>
<fieldset>
<group>
<formset>
What does the <thead> element define?
Table column
Table row
Table header section
Title of table
Which attribute is used to provide a short description for accessibility in <img> ?
title
alt
caption
desc
How does autocomplete='off' affect a form input field?
Prevents the field from being edited
Hides the input
Disables autofill suggestions
Enables validation
What happens when the required attribute is added to an input?
The input must be hidden
The field becomes read-only
The form cannot be submitted without input
It gets a default value
Which HTML5 element is used to define a self-contained composition (e.g., blog post)?
<section>
<aside>
<article>
<summary>
Which of the following label attribute must be same as that of id attribute of <input>
<name>
<id>
<value>
<for>
Which of the following is a non semantic page structure element
<article>
<aside>
<div>
<main>
