Class 10 Computer Application Code 165 HTML Cascading Style Sheet CSS Questions Answers

200+ Important Question Answer

Cascading Style Sheets (CSS)

Class 10 Computer Application [165] Questions Answers

Unit 2 HTML II

Unit 1 Networking

Cascading Style Sheets (CSS)

Question and Answers

1. What is DHTML?

Answer: DHTML stands for Dynamic HTML. DHTML is neither a language nor a web standard, rather it is a name given to the combination of the same web technologies which are HTML, Javascript, DOM, and CSS.

2. What is the full form of DOM?

Answer: DOM – Document Object Model

3. What is the full form of CSS?

Answer: CSS – Cascading Style Sheet.

4. How many types of websites?

Answer: There are two types of websites – Static and Dynamic

5. What is static websites?

Answer: A static website contains information that does not change. It remains the same or static, for every viewer of the site.

6. What is dynamic websites?

Answer: A dynamic website, contains information that changes depending on the viewer of the site, the time of the day, the time zone, the native language of the country the viewer is in or many other factors.

7. Which technology is use to create static webpage?

Answer: Generally HTML is use to create a static webpage.

8. Which technology is use to create dynamic webpage?

Answer: Dynamic webpage is created by using – HMTL, Javascript, DOM, and CSS.

9. What are the characteristics of DHTML?

Answer: Characteristics of DHTML are :-

  • animatioin of elements
  • mouse rollover effects
  • popup menus
  • search facility
  • input/feedback forms
  • customized information

10. Define the role of the component of DHTML?

Answer: Role of the components of DHTML are :-

(a) HTML – use to create base structure of a webpage,

(b) CSS – use to change the style of any HTML elements.

(c) DOM – use to map on every element in the HTML page.

(d) Javascript – use to access and have operation on the elements

11. What is Style sheet?

Answer: A Style sheet is a file containing formatting guidelines that define overall look of a document.

12. What is CSS?

Answer: CSS is an acronym for Cascading Style Sheets, which is a programming specification markup languages used for web development.

CSS uses rules called styles to determine the various look of contents of a web page. Through CSS, you can set colors, fonts, backgrounds, borders, margins and even placement of elements on a web page.

13. Which version of CSS is supported by modern browsers?

Answer: CSS3

14. What are the benefits of the CSS?

Answer: Benefits of CSS are-

  • Pages download faster.
  • type less code.
  • web page shorter and neater.
  • look of website is consistent.
  • updating design is easier.
  • maintenance of website is easier and less error prone.

15. What is CSS rule/style?

Answer: A CSS rule/style is a single statement in a style sheet that identifies what should be styled (the selector) and how those style should be applied (the declaration).

A list of many CSS rules makes a style sheets.

For example-

h3 { : Arial; color : red}

h3 is the selector, and : Arial and color : red are the declaration.

16. How can you define a style or rule in CSS?

Answer: The CSS rule/style is having two components -the selector and the declaration.

First of all you need to select a html tag, without angular bracket, called selector, then decide the properties and its value, known as declaration.

Syntax: selector { property-name : value ; property-name : value }

The declaration i.e. property-name and its value are written inside the curley {} braces, separated by comma. The property-name and value are separated by colon :

For example-

h3 { : Arial; color : red}

17. Explain the basic structure of a CSS rule?

Answer: The basis structure of CSS rule/style are –

CSS (Cascading Style Sheet) - ppt download

18. How to apply the same css rule/style on multiple tags?

Answer: To apply the same rule/style on multiple tags follow these –

selector1, selector2, selector3 {property-name : value; property-name : value}

For example: h1, h2, h3 {color : green; font-family : Times New Roman }

19. In how many ways you can create CSS Style Sheet?

Answer: In 3 ways, you can create CSS style sheet.

(a) Inline – embeded right withing the HTML code they effect.

(b) Internal – placed within the header information of the web page.

(c) External – styles are coded in a separate document.

20. Which style sheet has higher and lower precedence?

Answer: Inline style sheet has higher precedence and External style sheet has lower precedence.

21. What is Inline style? Explain with example.

Answer: An Inline style is used to apply a unique style for a single element. An style attribute is inside the <TAG> to apply it. Syntax: <element style = ” style rules”>
For Example:-

<HEAD> <TITLE> Inline Style Sheet </TITLE> </HEAD>
<H1 style = “color : red; margin-left : 100px;”></H1>
<H2 style = “color : blue; margin-left : 15px;”> Computer Application Code 165 Question Answer </H2>
<H3 style = “color : cyan; margin-left : 110px;”> Cascading Style Sheet (CSS) </H3>


You cannot copy content of this page

Scroll to Top