CASCADING STYLE SHEETS
PRACTICE SHEET
Multiple Choice Questions
1. ________ is designed primarily to enable the separation of document content from
document presentation.
a. HTML b. CSS c. CS d. None of these
2. Which property of CSS is used to set the font type of an HTML element?
a. font-size b. font-style c. font-family d. float
3. In ________, we can change the look of the entire website.
a. external style sheet c. internal style sheet
b. inline style d. None of these
Assertion and Reason
1. Assertion(A): CSS saves a lot of work. It can control the layout of multiple web
pages all at once.
Reason(R): All the required style settings can be stored in an external stylesheet
and a link to it can be added in the section of each web page.
2. Assertion(A): External CSS is linked to an HTML document using the <style>
element in the head section.
Reason(R): External CSS helps in separating the presentation from the content,
making it easier to maintain and update styles.
3. Assertion(A): Internal CSS is defined within the <style> element within the head
section of an HTML document.
Reason(R): Internal CSS is applied to the individual HTML webpage.
4. Assertion(A): The CSS property margin is used to adjust the space between an
element’s content and its border.
Reason(R): The margin property controls the space outside the border of an
element.
5. Assertion(A): The CSS property border-style is used to define the style of
element’s border.
Reason(R): The border-style property enables the selection of different styles for
an element’s border, such as solid, dashed or dotted.
6. Assertion(A): The CSS property outline is used to add a border around an
element.
Reason(R): The outline is similar to border.
7. Assertion(A): The CSS property font-size is used to set the size of the font for an
element.
Reason(R): The font size can be specified in pixels, percentage or other length
units.
8. Assertion(A): The CSS property float is used to move an element to the left or
right, allowing other elements to wrap around it.
Reason(R): We can also align our element in center using CSS float property.
27
9. Assertion(A): The CSS property text-align is used to align the content vertically
within an element.
Reason(R): The text-align property accepts values like left, right, center and
justify.
Very Short Type Answer
1. Explain CSS.
2. In which tag, <LINK> element can be used?
Short Type Answer
1. Explain the cascading style sheet.
2. Explain id selector in CSS.
Long Type Answer
1. Explain the different properties of the CSS.
2. What is the use of external style sheet. Explain its advantages & disadvantages.
28