Introduction to CSS

Question 1
Marks : +2 | -2
Pass Ratio : 100%
Which of the following tag is used to embed css in html page?
<script>
<style>
<css>
<!DOCTYPE html>
Explanation:
<style> </style> tag is used to embed CSS in HTML page, while <script> </script> is used to embed JS in HTML. <!DOCTYPE html> is HTML5 declaration.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
Which selector is used to specify a rule to bind a particular unique element?
id
class
tag
both class and tag
Explanation:
For binding a particular unique element, id selectors are used. While for group of elements, class selector can be used.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
In CSS, “font-size” can be called as ________
Selector
Rule
Property
Property-Name
Explanation:
In CSS, font-size is a property-name which increases/decreases the font of text.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
In CSS, h1 can be called as _______
Selector
Attribute
Value
Tag
Explanation:
HTML element h1 is used in CSS for styling then it is also called a selector. Attributes are the special words which control the element’s behaviour. To show the start and end of HTML element, tag is used.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
CSS stands for __________
Color Style Sheets
Cascade Sheets Style
Cascade Style Sheet
Cascading Style Sheets
Explanation:
CSS is a style sheet language which stands for Cascading Style Sheet.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Is it the best way to include H1 heading only one time on the web page.
True
False
Explanation:
It is good practice to include H1 heading only once and to use H2-H6 heading in other areas.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
__________ has introduced text, list, box, margin, border, color, and background properties.
css
html
ajax
php
Explanation:
CSS is a style sheet language which stands for Cascading Style Sheet. CSS has introduced text, list, box, margin, border, color, and background properties.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
_________ selectors are used to specify a group of elements.
id
class
tag
both class and tag
Explanation:
Class selectors are used to specify a group of elements. Id selector specifies a particular unique element.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
In css, “color:red” can be called as _____________
Selector
Rule
Declaration
Value
Explanation:
In CSS, color:red is the declaration for an element saying that the given element has to apply a red color. Color is one of CSS property.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Which of the following attributes is used to specify elements to bind style rules to?
id
class
tag
all of the mentioned
Explanation:
In CSS, styling elements can be done by id, class and tag attribute.