Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Battle Friday

Total questions: 30

Worksheet time: 10mins

Name
Class
Date
1.

HTML in full

a)
HyperText Markup Text
b)
HyperText Markup Code
c)
HyperText Markup Language
d)
HyperText Markup Script
2.

Where do we place the <style> tag

a)

Inside a <div>

element.

b)

Inside a <meta>

tag.

c)

Inside a <title>

tag.

d)

Inside a <head>

tag.

3.

Choose the odd man out

a)

HTML

b)

CSS

c)

JavaScript

d)

C++

4.

Which one is not a programming language

a)
JavaScript
b)

D++

c)

C

d)
Python
5.

Which programming language is widely used by Hackers

a)
Java
b)
Python
c)
C++
d)
Ruby
6.

What does px stands for in CSS

a)
points
b)
pixels
c)
percentage
d)

picture

7.

write the animation rule

(a)  

8.

Which of the following is a web browser

a)

Windows

b)

Microsoft

c)
Microsoft Word
d)
Google Chrome
9.

Choose the wrong answer

a)

display: block;

b)

display: flex;

c)

display: grid;

d)

display: both;

10.

Choose the correct answer

a)

justify-content: space-between;

b)

justify-content: flex;

c)

justify-content: grid;

d)

justify-content: up;

11.

justify-content: center; moves the component center on the Y-axis

a)

True

b)
False
c)

None

d)

It's not there

12.

What is the use of place-items: center; in the Grid

a)

Makes items center on Y-axis only

b)

Makes items center on X-axis only

c)

Centers items on both the Y & X axes.

d)

Centers items bottom on the Y-axis.

13.

Which tag is used to link an external CSS file

a)

<script>

b)

<link>

c)

<css>

d)

<style>

14.

What does float: left; do in CSS

a)

Removes the element from the flow

b)

Centers the element

c)

Moves the element to the left

d)

Moves the element to the right

15.

Which of the following is not a valid CSS selector

a)

*

b)

.class

c)

!important

d)

#id

16.

What does z-index control in CSS

a)

Element's height

b)

Element's opacity

c)

Element's width

d)

Element's stacking order

17.

Which HTML element is used to define an internal style sheet

a)

<style>

b)

<link>

c)

<script>

d)

<css>

18.

What does display: none; do in CSS

a)

Changes the element's color

b)

Positions the element

c)

Displays the element

d)

Hides the element

19.

What is the purpose of the <meta> tag in HTML

a)

To define metadata about the HTML document

b)

To link external JavaScript files

c)

To create a navigation menu

d)

To style the document

20.

What does flex-direction: column; do in a Flexbox layout?

a)

Aligns items horizontally

b)

Aligns items vertically

c)

Stacks items in a row

d)

Centers items in the container

21.

Which property is used to change the text color in CSS?

a)

background-color

b)

font-color

c)

text-color

d)

color

22.

What does overflow: hidden; do in CSS?

a)

Expands the container

b)

Scrolls the content

c)

Hides overflow content

d)

Shows all content

23.

What does align-items: stretch; do in a Flexbox layout?

a)

Aligns items to the start of the container

b)

Aligns items to the end of the container

c)

Centers items in the container

d)

Stretches items to fill the container

24.

What is the function of the <script> tag in HTML?

a)

To create a form

b)

To define metadata

c)

To link external CSS files

d)

To include JavaScript code

25.

What does margin: auto; do in CSS?

a)

Removes the element's margin

b)

Applies equal margin on all sides

c)

Sets the margin to zero

d)

Centers the element horizontally

26.

What does border: 1px solid black; do in CSS?

a)

Changes the background color of the element

b)

Sets the border to be transparent

c)

Creates a solid black border around the element

d)

Removes the border from the element

27.

Which HTML element is used to define a hyperlink?

a)

<url>

b)

<href>

c)

<link>

d)

<a>

28.

What does grid-template-columns: repeat(3, 1fr); do in CSS Grid?

a)

Creates three equal columns in the grid

b)

Creates three columns of varying widths

c)

Creates a single column in the grid

d)

Centers the columns in the grid

29.

Which property is used to set the background image in CSS?

a)

image-background

b)

background-image

c)

bg-image

d)

background-url

30.

What is the function of the <link> tag in HTML?

a)

To link external CSS stylesheets

b)

To create a hyperlink

c)

To include JavaScript files

d)

To define metadata