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 the acronym HTML mean?(HTML अर्थ के हो ?)

a)

Hyper Text Mask Language

b)

Hard Text Markup Language

c)

Hyper Text Markup Language

d)

Hard Text Mask Language

2.

Which label is correct to indicate a line break?(लाइन ब्रेक गर्न कुन tag सही छ)

a)

<br>

b)

<br/>

c)

<hr>

d)

<breakLine>

3.

What is the correct way to write a comment in HTML?(HTML मा Comment गराउने सही तरिका कुन हो ?)

a)

/* comment */

b)

<!– comment –>

c)

ctrl + Ç

d)

<¡– comment –>

4.

What is the correct way to write a link in HTML?(HTML मा लिङ्क लेख्ने सही तरिका कुन हो ?)

a)

<link href=”#”>…<link>

b)

<a title=”#”>…</>

c)

<a src=”#”>…</a>

d)

<a href=”#”>…</a>

5.

What tag is used to write an unordered list?(अक्रमित सूची लेख्न कुन ट्याग प्रयोग गरिन्छ?)

a)

<ol>

b)

<ul>

c)

<li>

d)

<list>

6.

What tag is used to name each row in an html list?(html सूचीमा प्रत्येक पङ्क्तिलाई नाम दिन कुन ट्याग प्रयोग गरिन्छ?)

a)

<ol>

b)

<ul>

c)

<li>

d)

<list>

7.

The following instructions are accompanied by an attribute. Which one is correct?(img tag लेख्ने सही तरिका कुन हो ?)

a)

<img src=”foto.jpg” alt=”text”>

b)

<img src=”foto.jpg” value=”text”>

c)

<img src=”foto.jpg” text=”text”>

d)

<img src=”foto.jpg” desc=”text”>

8.

Which of the following statements is a selector?(निम्न मध्ये कुन Selector Tag हो ?)

a)

p

b)

font-family

c)

50px

d)

red

9.

How do you define a background color for all "p" tags in CSS?(तपाइँ कसरी CSS मा सबै "p" ट्यागहरूको Background-color गर्नुहुन्छ?)

a)

p.all {background-color:red;}

b)

-p {background-color:red;}

c)

#p {background-color:red;}

d)

p {background-color:red;}

10.

With what property is defined the space between the border of an element and the elements that surround it?(कुनै पनि Content र Border को Space बढाउन कुन Property प्रयोग गरिन्छ ?

a)

border

b)

margin

c)

padding

d)

No answer is correct

11.

How do you change the value of the right margin of an element?(तपाइँ कसरी Elements को Right मार्जिनको मान परिवर्तन गर्नुहुन्छ?)

a)

text-right

b)

right-magin

c)

margin-right

d)

marginright

12.

What does CSS mean?(CSS को अर्थ के हो?)

a)

Cascading Style Sheets

b)

Center Style Steels

c)

Calibre Style Sheet

d)

No answer is correct

13.

How do you indicate that the text color is red?(तलका मध्ये कुन चाहिँले Text को Color Change गर्न सकिन्छ?)

a)

color: red

b)

color: #FF0000

c)

color: RGB(255, 0, 0)

d)

All the answers are correct

14.

How do you indicate that all "span" elements have bold text?(Span Tagको प्रयोग गरेर कसरी Text लाई Bold गर्ने सकिन्छ ।

a)

span {text-color:bold}

b)

span {text-weight:bold}

c)

span {font-style:bold}

d)

span {font-weight:bold}

15.

What property is used to change the font of an element?(तलका मध्ये कुन चाहिँ Property को प्रयोग गरेर font Change गर्न सकिन्छ?)

a)

text-type

b)

font-type

c)

font-family

d)

text-family

16.

What is HTML?(HTML के हो ?)

a)

A kind of website editor

b)

A markup language for creating web pages

c)

A browser

d)

A style sheet

17.

Where is the <title> tag displayed?(Title tag मा लेख्खेको कहाँ देखिन्छ ?)

a)

In the content of the page, it will be the largest heading

b)

In the browser tab that displays the document

c)

Not displayed because it is an element of <head>

d)

Its use in HTML5 is discouraged

18.

What is the correct order of the opening tags for a basic web structure?

a)

<body>, <head>, <html>

b)

<html>, <body>, <head>

c)

<html>, <head>, <body>

d)

<head>, <body>, <html>

19.

What is the pseudo-class used to detect when the mouse passes over an element?

a)

:first-child

b)

:link

c)

:sobre

d)

:hover

20.

What elements are, by default, of block?(तलका मध्ये कुन चाहिँ Block Level Elements हुन् ?)

a)

<p>, <h3> y <div>

b)

<p>, <strong> and <div>

c)

<p>, <h3> and <span>

d)

<strong>, <ul> and <span>