1. Which of the following syntax is correct for referring to External style sheet?

A) <style src=demo.css>

B) <style src=”demo.css”>

C) <link rel=”stylesheet” type=”text/css” href=”demo.css”>

D) <stylesheet> demo.css</stylesheet>

Correct Answer: <link rel=”stylesheet” type=”text/css” href=”demo.css”>

Explanation : <link rel="stylesheet" type="text/css" href="demo.css"> is the correct syntax for referring to External Style Sheet?


2. The CSS property used to control the font size of an element is ……….

A) Text-style

B) Text-size

C) Text-style-size

D) None of the above

Correct Answer: None of the above

Explanation : The CSS property.font-size is used to control the font size of the element.


3. By linking to the External Style Sheet, you can get a hyperlink from your page to the world wide web.

A) True

B) False

Correct Answer: False


4. Inline CSS is used to give a unique style to a single element?

A) True

B) False

Correct Answer: True

Explanation : Inline CSS is used to give a unique style to a single element. - True


5. The extension of CSS file is .cs.

A) True

B) False

Correct Answer: False

Explanation : The extension of CSS file is .css .


6. The default value of border-style is ridge.

A) True

B) False

Correct Answer: False

Explanation : The default value of border-style is none.


7. which attribute is used to make a link which open in a new window tab?

A) src=”_blank”

B) target=”_self”

C) alt=”_blank”

D) target=”_blank”

Correct Answer: target=”_blank”

Explanation : In HTML, the target="_blank" attribute is used to create a link that opens in a new window tab.


8. Which of the following CSS selectors are used to specify a set of elements?

A) tag

B) class

C) both class and tag

D) id

Correct Answer: class

Explanation : Class CSS selectors are used to specify a group of elements.


9. Which of the following tag is used to embed css in html page?

A) <css>

B) <style>

C) <!DOCTYPE html>

D) <script>

Correct Answer: <style>

Explanation : <style> tag is used to embed css in html page॰


10. which of the following text, list, box, margin, border, color and background properties have been introduced?

A) CSS

B) PHP

C) Ajax

D) HTML

Correct Answer: CSS

Explanation : Introduced CSS text, list, box, margin, border, color and background properties.


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

A) Opacity

B) Filter

C) Visibility

D) Overlay

Correct Answer: Opacity

Explanation : The CSS property used to specify the transparency of an element is -Opacity


12. What is the correct syntax to place a line above the text?

A) text-decoration: line-through

B) text-decoration: none

C) text-decoration: underline

D) text-decoration: overline

Correct Answer: text-decoration: overline

Explanation : The correct syntax to give line above text is text-decoration: overline .


13. The backend of any working website is created by mixing HTML, CSS and JavaScript.

A) True

B) False

Correct Answer: False


14. The font-family property is used to change the text font in HTML.

A) True

B) False

Correct Answer: True

Explanation : The font-family property is used to change the text font in HTML. - True


15. How can we write comment with CSS code?

A) /*examjila/

B) //examjila//

C) /*examjila*/

D) <examjila>

Correct Answer: /*examjila*/

Explanation : Can we write comment /*examjila*/ with CSS code.