0% found this document useful (0 votes)
39 views6 pages

CSS Quiz: Syntax, Properties, and Concepts

Uploaded by

Prajwal Samshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views6 pages

CSS Quiz: Syntax, Properties, and Concepts

Uploaded by

Prajwal Samshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

[Type]0

[Marks]1
[Negative Marks]0

Q.1) Which is the correct css syntax?


[a] Body:color=black
[b] {body;color:black}
*[c] Body {color: Black}
[d]{body:color=black(body}

[S1] This is for the solution

Q.2) Which CSS Property Sets a Background Image for an Element?


[a] Background - Color
*[b] Background - Image
[c] Background - Attachment
[d] None of These

[S1] This is for the solution

Q.3) What Is CSS Stand For


[a] Cascade Sheets Style
[b] Color Style Sheets
[c]Cascade Style Sheet
*[d] Cascading Style Sheets

[S1] This is for the solution

Q.4) In how many ways can a CSS be integrated as a web page?


[a]four
[b]one
*[c]three
[d]none of the above

[S1] This is for the solution

Q.5) If We Want define style for an unique element, then which Css
selector will we use?
[a]simple
[b]text
[c]name
*[d]id

[S1] This is for the solution

Q.6) CSS is written in which language?


[a] PHP
[b] JAVA
*[c]HTML
[d]PYTHON

[S1] This is for the solution


Q.7) What is the latest version of css?
[a]CSS 5
*[b]CSS 3
[c]CSS 4
[d]CSS 2

[S1] This is for the solution

Q.8) Which of the following attributes is used to specify elements to


bind style rules to?
*[a]id
[b]class
[c]tags
[d]all of the above

[S1] This is for the solution

Q.9) How will you make all paragraph elements red in color?

[a] all.p {color: #998877;}


[b] p.all {color: red;}
*[c] p {color: red;}
[d] p.all {color: #990000;}

[S1] This is for the solution

Q.10) Internal styles are written within the _____ element.


[a]<xmp><css></xmp>…<xmp></css></xmp>
*[b]<xmp> <style></xmp>…<xmp></style></xmp>
[c] <xmp><stylesheet></xmp>…<xmp></stylesheet></xmp>
[d] Both A. and B.

[S1] This is for the solution

Q.11) Which property is used to define the background color?


[a] bgcolor
[b] bg-color
*[c] background-color
[d] background

[S1] This is for the solution


Q.12) Which is the correct inline CSS for p tag to define paragraph's
text and background colors?

*[a]<xmp> <p style="color: red; background-color: yellow;"> </xmp>


[b]<xmp> <p inline="color: red; background-color: yellow;"> </xmp>
[c]<xmp> <p cssstyle="color: red; background-color: yellow;"> </xmp>
[d]<xmp> <p css="color: red; background-color: yellow;"> </xmp>

[S1] This is for the solution

Q.13) css is case sensitive


*[a]False
[b]True

[S1] This is for the solution

Q.14) What is the correct syntax of border property in CSS?


[a] border: border-color border-width border-style
[b] border: border-width border-color border-style
*[c] border: border-width border-style border-color
[d] All of the above

[S1] This is for the solution

Q.15) If you want to use a green dotted border around an image, which
CSS property is used for that?
[a] border-style
[b] border-color
[c] border-decoration
*[d] Both [a] and [b] options are correct

[S1] This is for the solution

Q.16) Which CSS property specifies how to align the last line of a text?
[a] text-align
*[b] text-align-last
[c] last-text-align
[d] text-align-last-line

[S1] This is for the solution

Q.17) Which of the following is the correct way to apply CSS Styles?

[a] in an external CSS file


[b]inside an HTML element
[c] inside the head section of an HTML page
*[d] all of the mentioned

[S1] This is for the solution


Q.18) Which of the following CSS property sets the font size of text?

[a] text-size
*[b] font-size
[c] text
[d] size

[S1] This is for the solution

Q.19) Which of the following is not the property of the CSS box model?
[a] height
[b] width
[c] margin
*[d] color

[S1] This is for the solution

Q.20) Which of the following CSS property specifies the look and design
of an outline?
[a]outline-font
[b] outline-format
*[c] outline-style
[d] none of the mentioned

[S1] This is for the solution

Q.21) What will be the output of the following CSS code?


div {
border-width:5px;
border-style:dotted solid double dashed;
}

[a] Box having dotted bottom outline, solid right outline, double top
outline and dashed left outline
[b] Box having dotted bottom outline, solid left outline, double top
outline and dashed left outline
*[c] Box having dotted top outline, solid right outline, double bottom
outline and dashed left outline
[d] Box having dotted top outline, solid left outline, double bottom
outline and dashed right outline

[S1] This is for the solution

Q.22) What does HSL stands for?


[a] Hue Specified Lightness
*[b] Hue Saturation Lightness
[c] Hue Spot Lightness
[d] None of the mentioned

[S1] This is for the solution


Q.23) Which of the following element is used for linking a External
Files to the html page?
[a]<xmp> <script> </xmp>
[b]<xmp> <style> </xmp>
*[c]<xmp> <link> </xmp>
[d] all of the above

[S1] This is for the solution

Q.24) Which of the following color has this value #ff0000?


[a] blue
*[b]red
[c] green
[d] yellow

[S1] This is for the solution

Q.25) Which of the following CSS property defines the different


properties of all four sides of an element’s border in a single
declaration?
[a] border
[b] padding
[c] border-collapse
*[d] border-width

[S1] This is for the solution

Q.26) Identify the CSS property defining bottom-left corner shape of


the border?

[a] border-radius
[b] border-corner-radius
*[c] border-bottom-left-radius
[d] border-left-radius

[S1] This is for the solution

Q.27) Which of the following Color Format can also be defined using the
keyword rgb, followed by three numbers between 0 and 255, contained in
parentheses and separated by commas, with no spaces between them?

[a] HSL Color


[b] RGBa Color
*[c] RGB Color
[d] HSLa Color

[S1] This is for the solution


Q.28) Which of the following is not a attribute of the audio element?
[a] src
*[b] check
[c] loop
[d] controls

[S1] This is for the solution

Q.29) The <xmp><style></xmp> in Internal CSS refers to ___.


[a] Attributes
*[b] HTML tags
[c] Selector
[d] All of the above

[S1] This is for the solution

Q.30) In this line of code, identify the selector ___.


p {border: 2px solid blue;}

[a] border
*[b] p
[c] 2px
[d] None of these

You might also like