All questions of DHTML & CS for Class 10 Exam

 DHTML is a combination of _________ and __________.
  • a)
    DOM and CSS
  • b)
    CSS and Conventional HTML
  • c)
    HTML and JavaScript
  • d)
    None of the above
Correct answer is option 'C'. Can you explain this answer?

Rahul Kapoor answered
DHTML combines HTML, JavaScript, DOM, and CSS.   
DHTML, is an umbrella term for a collection of technologies used together to create interactive and animated websites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model (DOM).The application of DHTML was introduced by Microsoft with the release of Internet Explorer 4 in 1997.

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
Correct answer is option 'B'. Can you explain this answer?

Gunjan Lakhani answered
Answer:
The correct answer is B:
‘%’ and ‘em’

Explanation:
The units '% and 'em' allow the user to adjust the font size according to their preference. Here is a detailed explanation:
- %: The percentage unit allows the user to set the font size relative to the parent element. For example, a font size of 100% is the default size inherited from the parent element, while a font size of 200% would be twice as large.
- em: The em unit also allows the user to adjust the font size relative to the parent element. However, unlike the percentage unit, the em unit is relative to the current font size. For example, if the font size is 16px, 1em would be equivalent to 16px, while 2em would be equivalent to 32px.
In summary, both the '%' and 'em' units provide flexibility for adjusting font sizes based on the user's preference.

 Which property describes how bold or “heavy” a font should be presented?
  • a)
    Font style
  • b)
    Font size
  • c)
    Font weight
  • d)
    Font variant
Correct answer is option 'C'. Can you explain this answer?

Vikas Kumar answered
Font weight [font-weight] The property font-weight describes how bold or "heavy" a font should be presented. A font can either be normal or bold. Some browsers even support the use of numbers between 100-900 (in hundreds) to describe the weight of a font. p {font-family: arial, verdana, sans-serif;} td {font-family: arial, verdana, sans-serif; font-weight: bold;} 

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
Correct answer is option 'B'. Can you explain this answer?

Property for Text Spacing:
The correct property to give specified spacing between text characters is the "Letter Spacing" property.
Explanation:
The "Letter Spacing" property is used to control the spacing between individual characters in a piece of text. It allows you to increase or decrease the space between letters, giving you more control over the typography and visual appearance of the text.
Usage:
To apply letter spacing to text, you can use the CSS "letter-spacing" property. Here's how it works:
- Add the CSS property to the selector that targets the text you want to modify.
- Specify a value for the letter spacing. This value can be in pixels (px), ems (em), or other units.
Example:
```
p {
letter-spacing: 2px;
}
```
In the above example, the letter spacing for all paragraphs will be increased by 2 pixels.
Other CSS Properties:
The other properties mentioned in the options are not used for giving spacing between text characters:
A: Text Decoration: This property is used to add decorations to text, such as underline, overline, or line-through.
C: Text Transform: This property is used to change the capitalization of text, such as making it all uppercase or lowercase.
D: None of the above: None of the mentioned properties are used to give spacing between text characters.
In conclusion, the correct property to give specified spacing between text characters is the "Letter Spacing" property.

.__________________________ 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
Correct answer is option 'C'. Can you explain this answer?

Sushil Solanki answered
Cascading Style Sheets (CSS)

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

Key Points:


  • CSS is a language used to control the presentation and layout of web pages.

  • It is written in a separate file with a .css extension, which is then linked to the HTML document.

  • CSS allows developers to define various styles for HTML elements, such as fonts, colors, spacing, and more.

  • It provides a way to create consistent and visually appealing designs across multiple web pages.

  • CSS follows a cascading order, meaning that styles can be inherited from parent elements and overridden by more specific styles.

  • It supports various selectors to target specific HTML elements or groups of elements.

  • With CSS, developers can create responsive designs that adapt and change based on different screen sizes and devices.

  • CSS can be used in conjunction with other web technologies, such as JavaScript and HTML, to enhance the functionality and interactivity of web pages.


Benefits of CSS:


  • Separation of concerns: CSS allows the separation of design and content, making it easier to maintain and update web pages.

  • Consistency: CSS enables consistent styling across multiple web pages, providing a cohesive user experience.

  • Efficiency: By using CSS, developers can apply styles to multiple elements simultaneously, reducing the amount of code and improving performance.

  • Flexibility: CSS provides a wide range of styling options, allowing developers to create unique and customized designs.

  • Accessibility: CSS supports accessibility features, making it easier to create web pages that are usable by individuals with disabilities.


In conclusion, Cascading Style Sheets (CSS) is a powerful language that allows developers to control the visual appearance and layout of web pages. It is an essential tool for creating attractive and responsive designs.

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
Correct answer is option 'D'. Can you explain this answer?

Crafty Classes answered
The Decorations or Effects that can be added to text are:
1. Text Align property:
- The Text Align property is used to specify the horizontal alignment of text within an element.
- It can be set to left, right, center, or justify.
- Left aligns the text to the left edge of the element.
- Right aligns the text to the right edge of the element.
- Center aligns the text in the center of the element.
- Justify aligns the text to both the left and right edges of the element, creating a straight edge on both sides.
2. Text Indent property:
- The Text Indent property is used to specify the indentation of the first line of text within an element.
- It can be set to a specific length or percentage value.
- A positive value indents the text to the right, while a negative value indents it to the left.
- This property is commonly used in paragraphs or lists to create an indentation for each new line or item.
3. Letter spacing property:
- The Letter spacing property is used to specify the space between characters in a text.
- It can be set to a specific length or percentage value.
- A positive value increases the space between characters, while a negative value decreases it.
- This property is often used for decorative or typographic purposes to create special effects or improve readability.
4. None of the above:
- This option indicates that none of the given options (Text Align property, Text Indent property, Letter spacing property) can be used to add decorations or effects to text.
- In this case, there may be other CSS properties or techniques that can be applied to achieve the desired effect.
By using these properties, you can enhance the appearance of text by aligning it, adding indentation, or adjusting the spacing between characters.

Chapter doubts & questions for DHTML & CS - Information & Computer Technology (Class 10) - Notes & Video 2025 is part of Class 10 exam preparation. The chapters have been prepared according to the Class 10 exam syllabus. The Chapter doubts & questions, notes, tests & MCQs are made for Class 10 2025 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests here.

Chapter doubts & questions of DHTML & CS - Information & Computer Technology (Class 10) - Notes & Video in English & Hindi are available as part of Class 10 exam. Download more important topics, notes, lectures and mock test series for Class 10 Exam by signing up for free.

Top Courses Class 10

Related Class 10 Content