0% found this document useful (0 votes)
3 views

Chapter 5 Dhtml & Css-x

This document covers Chapter 5 of ICT for Class X, focusing on DHTML and CSS. It includes multiple choice questions, fill-in-the-blanks, and short answer questions related to CSS properties, advantages, and usage in HTML. Key topics include font properties, text alignment, and background settings in web design.

Uploaded by

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

Chapter 5 Dhtml & Css-x

This document covers Chapter 5 of ICT for Class X, focusing on DHTML and CSS. It includes multiple choice questions, fill-in-the-blanks, and short answer questions related to CSS properties, advantages, and usage in HTML. Key topics include font properties, text alignment, and background settings in web design.

Uploaded by

fkashish49
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CLASS – X (ICT)

Chapter–5
DHTML & CSS
Exercise:
A. Multiple Choice Questions:
1. Which property describes how bold or “heavy” a font should be presented?
(a) Font style
(b) Font size
(c) Font weight
(d) Font variant
Ans:(c) Font weight

2. The units „___‟ and „___‟ allow the user to adjust the font size according to him/her.
(a) „#‟ and „me‟
(b) „%‟ and „em‟
(c) „$‟ and „es‟
(d) All of the above
Ans:(b) „%‟ and „em‟

3. The ___________ makes it is possible to add different “decorations” or “effects” to text.


(a) Text Align property
(b) Text Indent property
(c) Letter spacing property
(d) None of the above
Ans:(d) None of the above

4. DHTML is a combination of _________ and __________


(a) DOM and CSS
(b) CSS and Conventional HTML
(c) HTML and JavaScript
(d) None of the above
Ans:(c) HTML and JavaScript

5._________ is a style sheet language used for describing the look and formatting of a
document written in a markup language.
(a) Document Object Model (DOM)
(b) Multimedia filters
(c) Cascading Style Sheets (CSS)
(d) DHTML
Ans:(c) Cascading Style Sheets (CSS)

1
6. Which property is used to give the specified spacing between the text characters?
(a) Text Decoration
(b) Letter Spacing
(c) Text Transform
(d) None of the above
Ans:(b) Letter Spacing

7. The units „px‟ and „___‟ make the font size absolute.
(a) „pr‟
(b) „pn‟
(c) „pz‟
(d) „pt‟
Ans:(d) „pt‟

8. The _______ repeats the image both horizontally and vertically to cover the entire screen.
(a) Background Image property
(b) Foreground Color property
(c) Background Color property
(d) Background Repeat property
Ans:(d) Background Repeat property

B. Fill in the Blanks:


1. Font-family style differentiates between Serif, Sans-serif and monospace font faces.
2. The font-variant property refers to the lettercase variant of the font face.
3. CSS uses a numeric scale of multiples of 100 to 900.
4. The CSS specification also allows browser to render any default value as normal.
5. The text decoration has to rendered with effects.
6. The text-indent property allows you to add effects to text paragraphs by applying an
indent to the first line of the paragraph.
7. Font variant property is used to select normal or small case variants of a font.
8. The color property describes the foreground color of a text to be displayed in browser.
9. The property font-style defines the chosen font either in normal, italic, or oblique.
10. The property font-family is used to apply prioritized list of fonts in a web page.
11. The text-transform property controls the capitalization of a text.
12. The background-color property describes the background color of browser window.
13. The background-image property is used to insert a background image in a web page.

C. Answer the following questions:


1. Explain CSS with reference to DHTML.
Answer: CSS is a style sheet language used for describing the look and formatting of a
document written in a markup language. It is a way to provide style to HTML.
Whereas the HTML is the meaning or content, the style sheet is the presentation of
that document. DHTML is merely a browser feature- or enhancement- that gives
your browser the ability to be dynamic.

2
2. List some advantages and disadvantages of CSS.
Answer:
Advantages of CSS are:
1. It controls layout of many documents from one single style sheet.
2. It has more precise control of layout.
3. It applies different layouts to different media-types.
4. It has numerous advanced and sophisticated techniques to be applied on web pages.
Disadvantage of CSS are:
CSS is very limited in browser compatibility. When you design a web page and you
want it to display exactly as you like it. The problem with CSS is that it displays
WebPages very differently in the different browsers.
3. What is the extension of a CSS file?
Answer: The extension of CSS file is .CSS

4. Explain how would we embedded Style in your HTML.


Answer: There are three ways to apply CSS to an HTML document. By Inline, Internal or
using External style sheet in HTML page.

5. List down the various font-family property? Give an example of each.


Answer: The list down the various font family properties are:

Example: h1 {font-family: Arial, comic sans-serif, “Time New Roman” ;}


H2 {font-family: “Time New Roman”, verdana, serif ;}
6. What do you mean by font-variant? Give example of each.
Answer: The Font-variant property is used to select normal or small-caps variants of a font.

Example: h1 {font-variant: small caps ;}


body {font-variant: normal ;}
3
7. Explain font-weight?
Answer: Font-weight property describes how bold or “heavy” a font should be presented. A
font can either be normal or bold. Some browsers support the use of numbers between
100-900 (in hundreds) to describe the weight of a font.
Example: h1 {font-weight: bold ;}

8. Mention the properties of CSS used to insert Letter spacing in a line.


Answer: Letter-spacing property is used to insert Letter spacing in a line.
Example: h1 {letter-spacing: 5px ;}

9. How many types of text alignments can be included in a CSS page?


Answer: There are three types of text alignments can be included in a CSS page. The text
can either be aligned to the left, to the right or center of the screen.
Example: p {text-align: left ;}
p {text-align: center ;}
p {text-align: right ;}

10. How the text in a webpage can be capitalized using CSS properties?
Answer: The text-transform property controls the capitalization of a text. We can choose to
capitalize effects to be applied on text in the HTML code.
Example: p {letter-transform: uppercase ;}

11. Explain the CSS properties to set the foreground and background color of the
WebPages.
Answer: Color property is used to set the foreground colour while background-color
property is used to set background color of the WebPages.
Example: body {background-color: Black; color: white ;}

12. Which property of CSS controls the repetition of image inserted in a web page as a
background.
Answer: The property background-repeat is used to controls the repetition of image inserted
in a web page as a background.
Example: body {background-repeat: repeat-x ;}
or
Example: body {background-repeat: repeat-y ;}
or
Example: body {background-repeat: no-repeat ;}

*******

You might also like