O Level Online Exam
Menu mobile
Home
MCQ Topic Wise
IT TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Online Mock Test
IT TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PYTHON PROGRAMMING
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Old Papers
Practical Questions
Videos
Projects
MCQ : CSS For NIELIT O Level Exam
CSS For NIELIT O Level Exam
00:00:00
English
Hindi
Question No# :
01
out of 50
Report Bug
Bookmark
Which tag is used to link an external style sheet to a webpage?
बाहरी स्टाइल शीट को वेबपेज से जोड़ने के लिए किस टैग का उपयोग किया जाता है?
A.
<Link> tag
लिंक टैग
B.
<Style> tag
स्टाइल टैग
C.
<Script> tag
स्क्रिप्ट टैग
D.
@media
@मीडिया
Question No# :
02
out of 50
Report Bug
Bookmark
If an element becomes invisible but the rest of the web page layout is not affected, then what could be the property applied to that element?
A.
display: none;
display: none;
B.
visibility: hidden;
visibility: hidden;
C.
display: hidden;
display: hidden;
D.
visibility: none;
visibility: none;
Question No# :
03
out of 50
Report Bug
Bookmark
Which of the following selector selects the elements that are checked?
निम्नलिखित में से कौन सा चयनकर्ता चेक किए गए तत्वों का चयन करता है?
A.
E ~ F
E ~ F
B.
::after
::after
C.
:checked
:checked
D.
None of these
इनमें से कोई नहीं
Question No# :
04
out of 50
Report Bug
Bookmark
Which selector applies style when the mouse pointer is placed over an element?
कौन सा सेलेक्टर किसी एलिमेंट पर माउस पॉइंटर रखने पर स्टाइल लागू करता है?
A.
:focus
:focus
B.
:active
:active
C.
:hover
:hover
D.
:visited
:visited
Question No# :
05
out of 50
Report Bug
Bookmark
What type of CSS is generally recommended for designing large web pages?
A.
Inline
Inline
B.
Internal
Internal
C.
External
External
D.
None of These
None of These
Question No# :
06
out of 50
Report Bug
Bookmark
Which of the following CSS list properties is/are correct?
निम्नलिखित में से कौन सी सीएसएस सूची गुण सही है/हैं?
A.
set different list item markers for ordered lists
ऑर्डर लिस्टो के लिए अलग लिस्ट आइटम मार्कर सेट करें
B.
Set different list item markers for unordered lists
अव्यवस्थित लिस्टो के लिए अलग लिस्ट आइटम मार्कर सेट करें
C.
Set an image as the list item marker
एक इमेज को लिस्ट आइटम मार्कर के रूप में सेट करें
D.
All of the mentioned
उल्लिखित सभी
Question No# :
07
out of 50
Report Bug
Bookmark
How can you select all direct child elements of a specific parent in CSS
आप सीएसएस में किसी विशिष्ट माता-पिता के सभी प्रत्यक्ष बाल तत्वों का चयन कैसे कर सकते हैं
A.
parent > child
अभिभावक > बच्चा
B.
parent child
अभिभावक बच्चा
C.
parent .child
अभिभावक .बच्चा
D.
parent + child
माता-पिता + बच्चा
Question No# :
08
out of 50
Report Bug
Bookmark
The CSS property text-overflow: ellipsis; is used when:
सीएसएस संपत्ति text-overflow: ellipsis; प्रयोग तब किया जाता है जब
A.
The text should be vertically centered
पाठ लंबवत केन्द्रित होना चाहिए
B.
The text should be aligned to the right
पाठ को दाईं ओर संरेखित किया जाना चाहिए
C.
The text is too long to fit in the container
टेक्स्ट कंटेनर में फिट होने के लिए बहुत लंबा है
D.
The text color should be changed
टेक्स्ट का रंग बदला जाना चाहिए
Question No# :
09
out of 50
Report Bug
Bookmark
Which of the following is used to apply a specific rule and can never be overridden in CSS ?
निम्नलिखित में से किसका उपयोग एक विशिष्ट नियम को लागू करने के लिए किया जाता है और इसे CSS में कभी भी ओवरराइड नहीं किया जा सकता है?
A.
@important
@important
B.
!important!
!important!
C.
!important
!important
D.
important!
important!
Question No# :
10
out of 50
Report Bug
Bookmark
Which selector is used to target all elements on a webpage
वेबपेज पर सभी तत्वों को लक्षित करने के लिए किस चयनकर्ता का उपयोग किया जाता है
A.
#
#
B.
*
*
C.
.
.
D.
!
!
Question No# :
11
out of 50
Report Bug
Bookmark
What does the > selector do in CSS
> चयनकर्ता CSS में क्या करता है
A.
Selects all elements
सभी तत्वों का चयन करता है
B.
Selects all child elements of a specified element
किसी निर्दिष्ट तत्व के सभी चाइल्ड तत्वों का चयन करता है
C.
Selects all descendant elements
सभी क्लासिक सामानों का चयन किया जाता है
D.
Selects the next sibling element
अगले सहोदर तत्व का चयन करता है
Question No# :
12
out of 50
Report Bug
Bookmark
Which selector targets all input elements having a required attribute?
कौन सा चयनकर्ता उन सभी इनपुट तत्वों को लक्षित करता है जिनमें एक आवश्यक विशेषता होती है?
A.
input.required
input.required
B.
input[required]
input[required]
C.
input(required)
input(required)
D.
input::required
input::required
Question No# :
13
out of 50
Report Bug
Bookmark
What happens if an inline style conflicts with an external CSS rule
यदि कोई इनलाइन शैली बाहरी सीएसएस नियम के साथ टकराव करती है तो क्या होता है
A.
The external CSS rule is applied
बाह्य CSS नियम लागू किया गया है
B.
The inline style is applied
इनलाइन शैली लागू की गई है
C.
Both are ignored
दोनों को नजरअंदाज किया जाता है
D.
The browser applies the styles randomly
ब्राउज़र शैलियों को बेतरतीब ढंग से लागू करता है
Question No# :
14
out of 50
Report Bug
Bookmark
Which property is used to change the left margin of an element?
किसी तत्व के बाएँ मार्जिन को बदलने के लिए किस गुण का उपयोग किया जाता है?
A.
margin-left
margin-left
B.
indent
indent
C.
padding-left
padding-left
D.
left-margin
left-margin
Question No# :
15
out of 50
Report Bug
Bookmark
Which of the following selector selects all elements of E that have the attribute attr that end with the given value?
निम्नलिखित में से कौन सा चयनकर्ता E के उन सभी तत्वों का चयन करता है जिनमें विशेषता attr है जो दिए गए मान के साथ समाप्त होती है?
A.
E[attr^=value]
E[attr^=value]
B.
E[attr$=value]
E[attr$=value]
C.
E[attr*=value]
E[attr*=value]
D.
None of these
इनमें से कोई नहीं
Question No# :
16
out of 50
Report Bug
Bookmark
The CSS property word-spacing is used to control
CSS प्रॉपर्टी वर्ड-स्पेसिंग का उपयोग नियंत्रित करने के लिए किया जाता है
A.
The spacing between lines of text
पाठ की पंक्तियों के बीच का अंतर
B.
The spacing between words in a text
किसी पाठ में शब्दों के बीच का अंतर
C.
The width of the words in a text
किसी पाठ में शब्दों की चौड़ाई
D.
The color of the words in a text
किसी पाठ में शब्दों का रंग
Question No# :
17
out of 50
Report Bug
Bookmark
Which of the following selectors select any tag with an id attribute set ?
निम्नलिखित में से कौन सा सिलेक्टर आईडी एट्रीब्यूट के साथ किसी भी टैग को सेलेक्ट करता है?
A.
E#id
E#id
B.
.class
.class
C.
#id
#id
D.
*
*
Question No# :
18
out of 50
Report Bug
Bookmark
Identify the incorrect media type defined in CSS 2.
CSS 2 में परिभाषित गलत मीडिया प्रकार की पहचान करें।
A.
Handheld
हैंडहेल्ड
B.
Braille
ब्रेल
C.
Arial
एरिअल
D.
Print
प्रिंट
Question No# :
19
out of 50
Report Bug
Bookmark
The CSS property flex-grow is used to
CSS प्रॉपर्टी flex-grow का उपयोग किया जाता है
A.
Specify the initial size of a flex item
किसी फ्लेक्स आइटम का प्रारंभिक आकार निर्दिष्ट करें
B.
Define the order of a flex item
फ्लेक्स आइटम के क्रम को परिभाषित करें
C.
Control how much a flex item can shrink relative to the other flex items
नियंत्रित करें कि एक फ्लेक्स आइटम अन्य फ्लेक्स आइटम के सापेक्ष कितना सिकुड़ सकता है
D.
Control how much a flex item can grow relative to the other flex items
नियंत्रित करें कि एक फ्लेक्स आइटम अन्य फ्लेक्स आइटम के सापेक्ष कितना बढ़ सकता
Question No# :
20
out of 50
Report Bug
Bookmark
If an element have margin values 20px for top, 20px for bottom, 30px for right, 30px for left. Then which of the following is the correct way to set the margin?
A.
margin: 20px 20px 30px 30px
margin: 20px 20px 30px 30px
B.
margin: 30px 20px
margin: 30px 20px
C.
margin: 20px 30px
margin: 20px 30px
D.
margin: 30px 30px 20px 20px
margin: 30px 30px 20px 20px
Question No# :
21
out of 50
Report Bug
Bookmark
What does the CSS property display: none; do
सीएसएस संपत्ति क्या प्रदर्शित करती है: कोई नहीं; करना
A.
Hides the element
तत्व को छुपाता है
B.
Changes the font
फ़ॉन्ट बदलता है
C.
Increases the element's size
तत्व का आकार बढ़ाता है
D.
Makes the element visible
तत्व को दृश्यमान बनाता है
Question No# :
22
out of 50
Report Bug
Bookmark
Which is the correct CSS syntax written inside the style tag?
A.
body { font-size: 20px; }
body { font-size: 20px; }
B.
body { font-size= 20px };
body { font-size= 20px };
C.
body:{ font-size: 20px; }
body:{ font-size: 20px; }
D.
body:{ font-size= 20px; }
body:{ font-size= 20px; }
Question No# :
23
out of 50
Report Bug
Bookmark
The CSS property min-width is used to:
सीएसएस संपत्ति न्यूनतम-चौड़ाई का उपयोग इसके लिए किया जाता है:
A.
Set the maximum width of an element
किसी तत्व की अधिकतम चौड़ाई निर्धारित करें
B.
Specify the minimum width of an element
किसी तत्व की न्यूनतम चौड़ाई निर्दिष्ट करें
C.
Set the minimum font size of text
टेक्स्ट का न्यूनतम फ़ॉन्ट आकार सेट करें
D.
Change the background color of an element
किसी तत्व का पृष्ठभूमि रंग बदलें
Question No# :
24
out of 50
Report Bug
Bookmark
The CSS property text-align: center; is used to
सीएसएस संपत्ति टेक्स्ट-एलाइन: सेंटर; करने के लिए प्रयोग किया जाता है
A.
Align the text to the left
पाठ को बाईं ओर संरेखित करें
B.
Align the text to the right
पाठ को दाईं ओर संरेखित करें
C.
Center-align the text
पाठ को केंद्र-संरेखित करें
D.
Justify the text
पाठ का औचित्य सिद्ध करें
Question No# :
25
out of 50
Report Bug
Bookmark
What is the correct syntax for a keyframe in CSS
CSS में कीफ़्रेम के लिए सही सिंटैक्स क्या है
A.
@frames
@फ़्रेम
B.
@keyframe
@कीफ़्रेम
C.
@keyframes
@कीफ़्रेम्स
D.
@animation-frames
@एनिमेशन-फ़्रेम
Question No# :
26
out of 50
Report Bug
Bookmark
Which of the following property is used to make the text bold is CSS?
निम्नलिखित में से किस गुण का उपयोग टेक्स्ट को बोल्ड करने के लिए किया जाता है?
A.
font-weight:bold;
font-weight:bold;
B.
text-decoration:bold;
text-decoration:bold;
C.
text:bold;
text:bold;
D.
font:bold;
font:bold;
Question No# :
27
out of 50
Report Bug
Bookmark
The CSS property visibility: visible; does what to an element
सीएसएस संपत्ति दृश्यता: दृश्यमान; किसी तत्व के लिए क्या करता है
A.
Hides the element
तत्व को छुपाता है
B.
Makes the element visible
तत्व को दृश्यमान बनाता है
C.
Removes the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटा देता है
D.
Adds transparency to the element
तत्व में पारदर्शिता जोड़ता है
Question No# :
28
out of 50
Report Bug
Bookmark
____________ is used to add special effects to a website, such as animation, or hover effects.
____________ का यूज़ किसी वेबसाइट पर विशेष इफ़ेक्ट ऐड करने के लिए किया जाता है, जैसे एनीमेशन, या होवर इफ़ेक्ट।
A.
CSS
सीएसएस
B.
PHP
पीएचपी
C.
Javascript
जावास्क्रिप्ट
D.
HTML
एचटीएमएल
Question No# :
29
out of 50
Report Bug
Bookmark
What are the two segments of a style tag?
स्टाइल टैग के दो खंड कौन से हैं?
A.
Selector and property
चयनकर्ता और संपत्ति
B.
Name and content
नाम और सामग्री
C.
Head section and body section
हेड सेक्शन और बॉडी सेक्शन
D.
None
कोई भी नहीं
Question No# :
30
out of 50
Report Bug
Bookmark
What does the CSS property background-repeat: no-repeat; do
CSS प्रॉपर्टी बैकग्राउंड-रिपीट: नो-रिपीट; क्या करती है
A.
Repeats the background horizontally and vertically
पृष्ठभूमि को क्षैतिज और लंबवत रूप से दोहराता है
B.
Does not repeat the background image
पृष्ठभूमि छवि को दोहराता नहीं है
C.
Repeats the background only vertically
पृष्ठभूमि को केवल लंबवत रूप से दोहराता है
D.
Changes the background color
पृष्ठभूमि का रंग बदलता है
Question No# :
31
out of 50
Report Bug
Bookmark
Which property specifies the duration of a transition effect
कौन सी संपत्ति संक्रमण प्रभाव की अवधि निर्दिष्ट करती है
A.
transition-speed
संक्रमण-गति
B.
animation-duration
एनीमेशन-अवधि
C.
. transition-duration
संक्रमण-अवधि
D.
duration
अवधि
Question No# :
32
out of 50
Report Bug
Bookmark
The CSS property text-decoration: none; is used to
सीएसएस संपत्ति पाठ-सजावट: कोई नहीं; करने के लिए प्रयोग किया जाता है
A.
Remove the underline from a link
किसी लिंक से अंडरलाइन हटा दें
B.
Apply an underline to a link
किसी लिंक पर अंडरलाइन लागू करें
C.
Change the font size of a link
किसी लिंक का फ़ॉन्ट आकार बदलें
D.
Set the color of a link
लिंक का रंग सेट करें
Question No# :
33
out of 50
Report Bug
Bookmark
Which of the following selector selects the element that is the first child of its parent that is of its type?
निम्नलिखित में से कौन सा सेलेक्टर उस एलीमेंट का चयन करता है जो उसके पैरेंट का पहला चाइल्ड है जो उसी के प्रकार का है?
A.
:first-child
:first-child
B.
:last-child
:last-child
C.
::first-line
::first-line
D.
::first-letter
::first-letter
Question No# :
34
out of 50
Report Bug
Bookmark
The CSS property box-sizing: content-box; includes
सीएसएस संपत्ति बॉक्स-आकार: सामग्री-बॉक्स; शामिल
A.
Only the content of the box in the specified width and height
निर्दिष्ट चौड़ाई और ऊंचाई में केवल बॉक्स की सामग्री
B.
Both the content and padding in the specified width and height
निर्दिष्ट चौड़ाई और ऊंचाई में सामग्री और पैडिंग दोनों
C.
Only the padding of the box in the specified width and height
केवल निर्दिष्ट चौड़ाई और ऊंचाई में बॉक्स की पैडिंग
D.
Only the border of the box in the specified width and height
निर्दिष्ट चौड़ाई और ऊंचाई में केवल बॉक्स का बॉर्डर
Question No# :
35
out of 50
Report Bug
Bookmark
Which selector applies styles to all <p> elements inside a <div> element
कौन सा चयनकर्ता <div> तत्व के अंदर सभी <p> तत्वों पर शैलियाँ लागू करता है
A.
div, p
डिव, पी
B.
div + p
डिव + पी
C.
div p
डिव पी
D.
div > p
डिव > पी
Question No# :
36
out of 50
Report Bug
Bookmark
The CSS property outline is used for:
CSS संपत्ति रूपरेखा का उपयोग इसके लिए किया जाता है:
A.
Adding a shadow to the element
तत्व में छाया जोड़ना
B.
Highlighting the border of an element
किसी तत्व की सीमा को हाइलाइट करना
C.
Changing the font size
फ़ॉन्ट का आकार बदलना
D.
Controlling the spacing between lines of text
पाठ की पंक्तियों के बीच अंतर को नियंत्रित करना
Question No# :
37
out of 50
Report Bug
Bookmark
Which of the following selector selects an element if it’s the only child of its parent?
A.
:root
:root
B.
:nth-oftype(n)
:nth-oftype(n)
C.
:only-child
:only-child
D.
None of these
इनमें से कोई नहीं
Question No# :
38
out of 50
Report Bug
Bookmark
What is the correct CSS syntax for making all the <p> elements bold?
A.
<p style="font-size:bold;">
<p style="font-size:bold;">
B.
p {text-size:bold;}
p {text-size:bold;}
C.
<p style="text-size:bold;">
<p style="text-size:bold;">
D.
p {font-weight:bold;}
p {font-weight:bold;}
Question No# :
39
out of 50
Report Bug
Bookmark
Which of the following attribute is used to provide a unique name to an element?
किसी एलिमेंट को यूनिक नाम प्रदान करने के लिए निम्नलिखित में से किस विशेषता का उपयोग किया जाता है?
A.
class
class
B.
id
id
C.
type
type
D.
None of the above
None of the above
Question No# :
40
out of 50
Report Bug
Bookmark
Which of the following represents an internal style sheet?
A.
style=”tag{property:value;}”
style=”tag{property:value;}”
B.
<style> tag{property: value;} </style>
<style> tag{property: value;} </style>
C.
css=”tag{property=value;}”
css=”tag{property=value;}”
D.
<style> tag{property=value;} </style>
<style> tag{property=value;} </style>
Question No# :
41
out of 50
Report Bug
Bookmark
Which of the following selector applied styles to elements that are valid per HTML5 validations set either with the pattern or type attributes ?
निम्न सेलेक्टरों में से कौन स्टाइल उन एलिमेंट पर लागू होता है जो एचटीएमएल5 मान्यताओं के अनुसार वैध है या तो पैटर्न या प्रकार एट्रीब्यूटो के साथ सेट हैं ?
A.
:valid
:valid
B.
:required
:required
C.
:optional
:optional
D.
:invalid
:invalid
Question No# :
42
out of 50
Report Bug
Bookmark
Which property is used in CSS to change the background color?
CSS में बैकग्राउंड का रंग बदलने के लिए किस प्रॉपर्टी का उपयोग किया जाता है?
A.
bgcolor
बीजी कलर
B.
background-color
बैकग्राउंड कलर
C.
color
कलर
D.
back-color
बैक-कलर
Question No# :
43
out of 50
Report Bug
Bookmark
What does the adjacent sibling selector (+) do
निकटवर्ती सहोदर चयनकर्ता (+) क्या करता है
A.
Selects the first child of an element
किसी भी तत्व के पहले बच्चे का चयन किया जाता है
B.
Selects all sibling elements
सभी सहोदर तत्वों का चयन करता है
C.
Selects the immediately next sibling of an element
किसी तत्व के ठीक अगले सहोदर का चयन करता है
D.
Selects the parent of an element
किसी तत्व के जनक का चयन करता है
Question No# :
44
out of 50
Report Bug
Bookmark
In the following transition, what does .4s describe? transition: color .4s linear;
निम्नलिखित ट्रांजीशन में, .4s क्या वर्णन करता है?
A.
Word-spacing
Word-spacing
B.
Padding
Padding
C.
Duration
Duration
D.
Property
Property
Question No# :
45
out of 50
Report Bug
Bookmark
Which CSS property is used to change the text color of an element
किसी तत्व के टेक्स्ट का रंग बदलने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है?
A.
font-color
लिपि का रंग
B.
text-color
पाठ का रंग
C.
color
रंग
D.
text-style
पाठ शैली
Question No# :
46
out of 50
Report Bug
Bookmark
From the below mentioned CSS properties, which of the following is used to make the text bold?
नीचे दिए गए सी एस एस प्रॉपर्टी से, टेक्स्ट को बोल्ड बनाने के लिए निम्न में से किसका उपयोग किया जाता है?
A.
Text-align: bold
Text-align: bold
B.
Font-style: bold
Font-style: bold
C.
Font-weight: bold
Font-weight: bold
D.
Text-decoration: bold
Text-decoration: bold
Question No# :
47
out of 50
Report Bug
Bookmark
Different ways in which css one can be added to the HTML:
विभिन्न तरीकों से सीएसएस को HTML में जोड़ा जा सकता है:
A.
Inline
Inline
B.
Internal
Internal
C.
External
External
D.
All of these
All of these
Question No# :
48
out of 50
Report Bug
Bookmark
To cluster a group of elements together to apply formatting
फॉर्मेटिंग_________लागू करने के लिए एलिमेंट के समूह को एक साथ समूहित करना |
A.
tag
tag
B.
class
class
C.
id
id
D.
div
div
Question No# :
49
out of 50
Report Bug
Bookmark
What does CSS stand for
सीएसएस का मतलब क्या है
A.
Computer Style Sheets
कंप्यूटर स्टाइल शीट
B.
Creative Style Sheets
क्रिएटिव स्टाइल शीट्स
C.
. Cascading Style Sheets
व्यापक शैली पत्रक
D.
Colorful Style Sheets
रंगीन स्टाइल शीट
Question No# :
50
out of 50
Report Bug
Bookmark
Which of the following is not a value for font-style property?
A.
normal
normal
B.
italic
italic
C.
oblique
oblique
D.
none of the above
none of the above
Latest Current Affairs 2026
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Online MBA 2 years
Online MCA
Online BCA
Best Website and Software Company in Allahabad