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

DHTML & CSS BY ZAKII

Notes class 10 ict

Uploaded by

s.m.fazlerehmani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

DHTML & CSS BY ZAKII

Notes class 10 ict

Uploaded by

s.m.fazlerehmani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CSS Questions and Answers

Made by Zakii
A. Multiple Choice Questions with Answers

1. **Which property describes how bold or 'heavy' a font should be presented?**


**
Answer: ** (c) Font weight

2. **The units '%' and 'em' allow the user to adjust the font size according to him/her.**
**
Answer: ** (b) '%' and 'em'

3. **The 'text-decoration' property makes it possible to add different 'decorations' or 'effects' to text.**
**
Answer: ** Text-decoration property *(Correct answer not listed in options)*

4. **DHTML is a combination of HTML and JavaScript.**


**
Answer: ** (c) HTML and JavaScript

5. **CSS is a style sheet language used for describing the look and formatting of a document written
in a markup language.**
**
Answer: ** (c) Cascading Style Sheets (CSS)

6. **Which property is used to give the specified spacing between the text characters?**
**
Answer: ** (b) Letter Spacing

7. **The units 'px' and 'pt' make the font size absolute.**
**
Answer: ** (d) 'pt'

8. **The 'background-repeat' property repeats the image both horizontally and vertically to cover the
entire screen.**
**
Answer: ** (d) Background Repeat property
Made by Zakii
CSS Questions and Answers

B. Fill in the Blanks with Answers

**1. Font-family style differentiates between _serif_, _sans-serif_, and _monospace_ font faces.**

**2. The font-variant property refers to the _small-caps_ variant of the font face.**

**3. CSS uses a numeric scale of multiples of _100_ to _900_.**

**4. The CSS specification also allows browsers to render any _non-numeric_ value as normal.**

**5. The text decoration has to be rendered with _specified effects_ (e.g., underline, overline,
line-through).**

**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-caps_ variants of a font.**

**8. The _color_ property describes the foreground color of text to be displayed in the 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 a 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 the browser window.**

**13. The _background-image_ property is used to insert a background image in a web page.**

C. Questions and Answers

**1. Explain CSS with reference to DHTML:**


CSS (Cascading Style Sheets) in DHTML is used to control the styling and layout of HTML
elements dynamically. CSS enables precise control over fonts, colors, spacing, and positioning,
adding interactivity and enhancing user experience in DHTML pages.

**2. List some advantages and disadvantages of CSS:**


**Advantages:**
- Centralized control of layout through a single style sheet.
- Precise formatting of elements and advanced styling techniques.
Made by Zakii
CSS Questions and Answers

- Different layouts can be applied to various media types.


**Disadvantages:**
- Browser compatibility issues; styles may vary across browsers.
- Requires effort to debug and standardize appearance.

**3. What is the extension of a CSS file?**


**
Answer: ** .css

**4. Explain how you would embed a style in your HTML:**


Styles can be embedded using the <style> tag in the <head> section of the HTML document. For
example:
<style>
body { background-color: #FF0000; }
</style>

**5. List down the various font-family properties. Give an example of each:**
- **Serif:** e.g., Times New Roman
- **Sans-serif:** e.g., Arial
- **Monospace:** e.g., Courier New
**Example in CSS:**
p { font-family: Arial, sans-serif; }

**6. What do you mean by font-variant? Give examples:**


Font-variant is used to display text in normal or small-caps style.
**Example:**
h1 { font-variant: small-caps; }

**7. Explain font-weight:**


The font-weight property defines the boldness of text. Values can range from normal or bold to
numeric values between 100-900.
**Example:**
p { font-weight: bold; }

**8. Mention the properties of CSS used to insert letter spacing in a line:**
Made by Zakii
CSS Questions and Answers

The letter-spacing property is used to specify spacing between characters.


**Example:**
h1 { letter-spacing: 5px; }

**9. How many types of text alignments can be included in a CSS page?**
**
Answer: ** Four types: left, right, center, and justify.
**Example:**
p { text-align: justify; }

**10. How can text in a webpage be capitalized using CSS properties?**


**
Answer: ** The text-transform property can capitalize text.
**Example:**
p { text-transform: uppercase; }

**11. Explain the CSS properties to set the foreground and background color of webpages:**
- **Foreground Color:** Controlled using the color property.
- **Background Color:** Controlled using the background-color property.
**Example:**
body { color: #000000; background-color: #FFFFFF; }

**12. Which property of CSS controls the repetition of an image inserted in a web page as a
background?**
**
Answer: ** The background-repeat property.
**Example:**
body { background-repeat: no-repeat; }

You might also like