NEW
Font size
WorksheetsHTML_Intellipaat
Total questions: 33
Worksheet time: 16mins
What is the correct HTML tag for inserting an image on a webpage?
<picture>
<image>
<photo>
<img>
Which HTML tag is used to define a table?
<table>
<tr>
<td>
<th>
What is the correct HTML tag for defining a section of content?
<div>
<content>
<section>
<container>
How many tags are in a regular element?
2
1
3
4
What is the correct HTML tag for creating a hyperlink?
<link>
<a>
<href>
<hyperlink>
What is the purpose of the <head> tag in HTML?
To define the main content of the webpage
To define a section of content
To define the header of the webpage
To define a hyperlink
<p> is the opening tag for a _____________
page
paragraph
preorder
period
What is the correct HTML for creating a hyperlink?
<a href="https://www.google.com/">Google</a>
<a> href="https://www.google.com/"Google</a>
<a href="https://www.google.com/"></a>
What is the correct HTML element for inserting a line break?
<br>
<break>
<lb>
Which of the following is NOT a valid type attribute for the <input> tag?
checkbox
select
date
password
Which HTML element defines the title of a document?
<meta>
<title>
<head>
What is the correct HTML tag for defining a form input field for user input?
<input>
<form-input>
<user-input>
<form>
What is the correct HTML tag for inserting a video on a webpage?
<video/>
<vid>
<video>
<play>
What is the purpose of the <nav> tag in HTML5?
To define a navigation menu or links for a webpage.
To define a table of contents.
To define a navigation bar for a website.
To define a navigation bar for a mobile app.
Which of the following is not a valid HTML5 semantic element?
<section>
<nav>
<div>
<aside>
Which of the following is the correct way to define a checkbox input element in HTML?
<checkbox name="myCheckbox">
<input name="myCheckbox" type="box">
<input type="check" name="myCheckbox">
<input type="checkbox" name="myCheckbox">
What is the correct HTML tag for embedding an audio file that is compatible with all modern browsers?
<sound>
<audio>
<music>
<play>
Which HTML tag is used to create an unordered list?
<ul>
<ol>
<li>
<list>
Which of the following is not a valid type for the <input> element in HTML5?
color
day
week
time
What is the correct HTML tag for creating a definition list?
<list>
<dl>
<dt>
<dd>
What is the correct HTML tag for defining a header section in a webpage
<header>
<head>
<h1>
<h2>
Which of the following is NOT a valid attribute for the <a> tag in HTML?
href
target
source
title
How can you create a hyperlink that opens an email client with a pre-filled email address?
<a href="mailto:">
<a href="mailto:" target="_blank">
<a href="mailto:">Email me</a>
<a href="mailto:">Email me</a> target="_blank"
What is the correct HTML tag for creating a numbered list?
<ol>
<ul>
<list>
<li>
Which attribute is used to specify the alternative text for an image?
alt
src
title
caption
How do you create an ordered list with lowercase Roman numerals?
<ol type="i-lower">
<ol type="i">
<ol type="I">
<ol type="a">
How do you create a horizontal rule in HTML?
<line>
<hrule>
<break>
<hr>
What does the placeholder attribute do in an input element?
Adds a tooltip to the input field
Specifies the initial value of the input field
Changes the color of the input text
Provides a hint or example value before user input
How do you create a comment in HTML?
<!-- This is a comment -->
// This is a comment
/* This is a comment */
<!-- Comment -->
Which tag is used to group related form elements together?
<group>
<fieldset>
<form-group>
<div>
How do you create a hyperlink that opens in a new browser window or tab?
<a href="url" target="_self">
<a href="url" target="_blank">
<a href="url" target="_parent">
<a href="url" target="_top">
What does the target="_self" attribute value do in a hyperlink?
Opens the linked document in a new tab or window
Opens the linked document in the same tab or window
Specifies the target device for the link
Disables the link functionality
What is the correct way to add a horizontal space in HTML?
<space>
<hr>
<br>
