wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML CSS

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyper Transfer Markup Language

b)

Hyper Text Markup Language

c)

High Text Machine Language

d)

Hyperlink and Text Management Language

2.

Which HTML tag is used to define a hyperlink?

a)

<link>

b)

<a>

c)

<href>

d)

<hyper>

3.

What is the correct way to make a text bold in HTML?

a)

<b>Bold</b>

b)

<strong>Bold</strong>

c)

<bold>Bold</bold>

d)

Both A and B

4.

Which tag is used for creating an unordered list?

a)

<ul>

b)

<ol>

c)

<li>

d)

<list>

5.

What is the correct HTML for inserting an image?

a)

<img src="image.jpg">

b)

<image src="image.jpg">

c)

<img href="image.jpg">

d)

<picture src="image.jpg">

6.

Which HTML tag is used for the largest heading?

a)

<h6>

b)

<h1>

c)

<head>

d)

<heading>

7.

How do you create a line break in HTML?

a)

<break>

b)

<lb>

c)

<br>

d)

<hr>

8.

Which HTML tag is used to define a table?

a)

<table>

b)

<tab>

c)

<tbl>

d)

<tr>

9.

Which tag is used to define a drop-down selection list?

a)

<dropdown>

b)

<select>

c)

<list>

d)

<option>

10.

Which HTML element is used for the main content of a webpage?

a)

<body>

b)

<section>

c)

<content>

d)

<main>

11.

Which HTML tag is used to create a numbered list?

a)

<ul>

b)

<list>

c)

<ol>

d)

<li>

12.

Which attribute is used to provide alternative text for an image in HTML?

a)

title

b)

alt

c)

src

d)

description

13.

What does CSS stand for?

a)

Computer Style Sheets

b)

Creative Style System

c)

Cascading Style Sheets

d)

Colorful Style Sheets

14.

Which CSS property controls the text size?

a)

text-style

b)

font-size

c)

text-size

d)

font-weight

15.

How can you apply a background color in CSS?

a)

color: blue

b)

background-color: blue

c)

bg-color: blue

d)

background:color blue

16.

Which is the correct way to add an external CSS file?

a)

<link rel="stylesheet" href="styles.css">

b)

<style src="styles.css">

c)

<css link="styles.css">

d)

<script href="styles.css">

17.

What is the default position value in CSS?

a)

absolute

b)

relative

c)

static

d)

fixed

18.

Which property is used to create space inside an element’s border?

a)

margin

b)

padding

c)

border

d)

spacing

19.

How do you make a flex container in CSS?

a)

display: grid

b)

display: flex

c)

flexbox: true

d)

container: flex

20.

How do you apply a hover effect in CSS?

a)

a.hover { color: red; }

b)

a:hover { color: red; }

c)

hover a { color: red; }

d)

a onhover { color: red; }