wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Fundamentals Assessment

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is an HTML element?

a)

An HTML element is a component of an HTML document that represents a part of the content, such as a paragraph, heading, or link.

b)

An HTML element is a type of programming language.

c)

An HTML element is a software application.

d)

An HTML element is a database structure.

2.

What is the purpose of an HTML tag?

a)

To create animations on a webpage.

b)

The purpose of an HTML tag is to structure and format content on a webpage.

c)

To enhance server-side processing.

d)

To store data in a database.

3.

Which tag is used to define the root of an HTML document?

a)

<!DOCTYPE html>

b)

<head>

c)

<body>

d)

<html>

4.

What is an attribute in HTML?

a)

An attribute in HTML is a type of element.

b)

An attribute in HTML is a style applied to an element.

c)

An attribute in HTML is a modifier of an element that provides additional information.

d)

An attribute in HTML is a script that runs on the page.

5.

How do you add a class attribute to an HTML element?

a)

Add a class by using the 'id' attribute instead.

b)

Use the 'style' attribute to add a class.

c)

Include the class in a separate CSS file only.

d)

Use the 'class' attribute in the HTML tag, e.g., .

6.

What is the difference between block-level and inline elements?

a)

Inline elements can occupy the full width of the container.

b)

Block-level elements can only contain text.

c)

Block-level elements vs. inline elements: Block-level elements occupy the full width and start on a new line; inline elements occupy only the space they need and do not start on a new line.

d)

Block-level elements are always smaller than inline elements.

7.

Which HTML tag is used for creating hyperlinks?

a)

<link>

b)

<b>

c)

<a>

d)

<u>

8.

What is the purpose of semantic elements in HTML?

a)

The purpose of semantic elements in HTML is to give meaning to the content, enhancing accessibility and SEO.

b)

To create visual styles for web elements.

c)

To define the layout of a webpage.

d)

To improve the loading speed of web pages.

9.

Name three semantic elements in HTML(Two answers are correct).

a)

<section>

<article>

<nav>

b)

<main>

<header>

<div>

c)

<footer>

<aside>

<main>

d)

<header>

<div>

<nav>

10.

What does the <img> tag do in HTML?

a)

It creates a hyperlink to another webpage.

b)

It embeds an image into the webpage.

c)

It defines a section of the webpage.

d)

It creates a table in the document.