wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

html and css smart

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What will be the output of following CSS code snippet?

h1 {color: red text-decoration: underline; font-style: italic;}

a)

color: red, text-decoration: underline works

b)

only font-style: italic works

c)

color: red, text-decoration: underline and font-style: italic all works

d)

text-decoration: underline and font-style: italic works

2.

Which of the following CSS Property controls how an element is positioned?

a)

static

b)

position

c)

fix

d)

set

3.

Which of the following is an appropriate value for the overflow element?

a)

scroll

b)

hidden

c)

auto

d)

all of the mentioned

4.

Which of the following CSS Property sets the stacking order of positioned elements?

a)

y-index

b)

z-index

c)

x-index

d)

all of the mentioned

5.

Which of the following is the correct syntax to select the p siblings of a div element?

a)

p

b)

div + p

c)

div p

d)

div ~ p

6.

Which of the following CSS property is used to specify whether the table cells share the common or separate border?

a)

border-radius

b)

border-collapse

c)

border-spacing

d)

None of the above

7.

The CSS property used to specify the transparency of an element is ...

a)

Hover

b)

opacity

c)

clearfix

d)

overlay

8.

How to create a checkbox in HTML?

a)

<input type = "checkbox">

b)

<input type = "button">

c)

<checkbox>

d)

<input type = "check">

9.

A program in HTML can be rendered and read by ....

a)

Web browser

b)

Server

c)

Interpreter

d)

None of the above

10.

Which of the following property value is related with font-weight?

a)

italic

b)

underline

c)

bold

d)

both a and c