< Back to Tests


Basics Of CSS

Basic testing of CSS

1. What is full form of CSS ?

Colorful Style Sheets
Computer Style Sheets
Cascading Style Sheets
None

2. Under which HTML tag style tags should be placed in html file ?

<body>
<head>
<p>
<file>

3. Which HTML tag is used to define an internal style sheet?

link
css
script
style

4. Which HTML attribute is used to define inline styles ?

styles
style
css
sheet

5. Which style sheet has highest priority ?

Internal
Inline
Extrernal
None

6. How do you add a comment in a CSS file?

/* comment */
// comment
# comment
None

7. What property is used to change the text color of an element ?

font-color
color
bg-color
foreground

8. The # symbol specifies that the selector is ?

class
id
tag
element

9. The . symbol specifies that the selector is?

class
id
element
tag

10. Which is the correct CSS syntax ?

{p:color==black}
{p:color=black;}
{p;color=black}
{p:color=black}