wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML_Intellipaat

Total questions: 33

Worksheet time: 16mins

Name
Class
Date
1.

What is the correct HTML tag for inserting an image on a webpage?

a)

<picture>

b)

<image>

c)

<photo>

d)

<img>

2.

Which HTML tag is used to define a table?

a)

<table>

b)

<tr>

c)

<td>

d)

<th>

3.

What is the correct HTML tag for defining a section of content?

a)

<div>

b)

<content>

c)

<section>

d)

<container>

4.

How many tags are in a regular element?

a)

2

b)

1

c)

3

d)

4

5.

What is the correct HTML tag for creating a hyperlink?

a)

<link>

b)

<a>

c)

<href>

d)

<hyperlink>

6.

What is the purpose of the <head> tag in HTML?

a)

To define the main content of the webpage

b)

To define a section of content

c)

To define the header of the webpage

d)

To define a hyperlink

7.

<p> is the opening tag for a _____________

a)

page

b)

paragraph

c)

preorder

d)

period

8.

What is the correct HTML for creating a hyperlink?

a)

<a href="https://www.google.com/">Google</a>

b)

<a> href="https://www.google.com/"Google</a>

c)

<a href="https://www.google.com/"></a>

9.

What is the correct HTML element for inserting a line break?

a)

<br>

b)

<break>

c)

<lb>

10.

Which of the following is NOT a valid type attribute for the <input> tag?

a)

checkbox

b)

select

c)

date

d)

password

11.

Which HTML element defines the title of a document?

a)

<meta>

b)

<title>

c)

<head>

12.

What is the correct HTML tag for defining a form input field for user input?

a)

<input>

b)

<form-input>

c)

<user-input>

d)

<form>

13.

What is the correct HTML tag for inserting a video on a webpage?

a)

<video/>

b)

<vid>

c)

<video>

d)

<play>

14.

What is the purpose of the <nav> tag in HTML5?

a)

To define a navigation menu or links for a webpage.

b)

To define a table of contents.

c)

To define a navigation bar for a website.

d)

To define a navigation bar for a mobile app.

15.

Which of the following is not a valid HTML5 semantic element?

a)

<section>

b)

<nav>

c)

<div>

d)

<aside>

16.

Which of the following is the correct way to define a checkbox input element in HTML?

a)

<checkbox name="myCheckbox">

b)

<input name="myCheckbox" type="box">

c)

<input type="check" name="myCheckbox">

d)

<input type="checkbox" name="myCheckbox">

17.

What is the correct HTML tag for embedding an audio file that is compatible with all modern browsers?

a)

<sound>

b)

<audio>

c)

<music>

d)

<play>

18.

Which HTML tag is used to create an unordered list?

a)

<ul>

b)

<ol>

c)

<li>

d)

<list>

19.

Which of the following is not a valid type for the <input> element in HTML5?

a)

color

b)

day

c)

week

d)

time

20.

What is the correct HTML tag for creating a definition list?

a)

<list>

b)

<dl>

c)

<dt>

d)

<dd>

21.

What is the correct HTML tag for defining a header section in a webpage

a)

<header>

b)

<head>

c)

<h1>

d)

<h2>

22.

Which of the following is NOT a valid attribute for the <a> tag in HTML?

a)

href

b)

target

c)

source

d)

title

23.

How can you create a hyperlink that opens an email client with a pre-filled email address?

a)

<a href="mailto:">

b)

<a href="mailto:" target="_blank">

c)

<a href="mailto:">Email me</a>

d)

<a href="mailto:">Email me</a> target="_blank"

24.

What is the correct HTML tag for creating a numbered list?

a)

<ol>

b)

<ul>

c)

<list>

d)

<li>

25.

Which attribute is used to specify the alternative text for an image?

a)

alt

b)

src

c)

title

d)

caption

26.

How do you create an ordered list with lowercase Roman numerals?

a)

<ol type="i-lower">

b)

<ol type="i">

c)

<ol type="I">

d)

<ol type="a">

27.

How do you create a horizontal rule in HTML?

a)

<line>

b)

<hrule>

c)

<break>

d)

<hr>

28.

What does the placeholder attribute do in an input element?

a)

Adds a tooltip to the input field

b)

Specifies the initial value of the input field

c)

Changes the color of the input text

d)

Provides a hint or example value before user input

29.

How do you create a comment in HTML?

a)

<!-- This is a comment -->

b)

// This is a comment

c)

/* This is a comment */

d)

<!-- Comment -->

30.

Which tag is used to group related form elements together?

a)

<group>

b)

<fieldset>

c)

<form-group>

d)

<div>

31.

How do you create a hyperlink that opens in a new browser window or tab?

a)

<a href="url" target="_self">

b)

<a href="url" target="_blank">

c)

<a href="url" target="_parent">

d)

<a href="url" target="_top">

32.

What does the target="_self" attribute value do in a hyperlink?

a)

Opens the linked document in a new tab or window

b)

Opens the linked document in the same tab or window

c)

Specifies the target device for the link

d)

Disables the link functionality

33.

What is the correct way to add a horizontal space in HTML?

a)

<space>

b)

<hr>

c)

<br>

d)

&nbsp;