Class 9: Chapter 3 Short Question Answers (SRQs)

Clear, concise answers for your quick revision and exam preparation.

Back to Chapter 3 MCQs

Class 9 Chapter 3: Short Question Answers (SRQs)

1. Contrast between website and web application.

Website:

  • A website consists of static pages that display content like text, images, and videos.
  • It is mostly informational and doesn’t involve much user interaction.
  • Example: News websites, blogs.

Web Application:

  • A web application is dynamic, interactive, and allows users to perform tasks.
  • It involves user input, processing, and output.
  • Example: Online shopping platforms like Amazon, or email services like Gmail.

Example:

A website might be a cooking blog showing recipes.

A web application could be an online food delivery service where users order meals.

2. What is 'href' refers to and how to use it?

The href attribute in HTML specifies the URL (hyperlink reference) of a link.

It is used inside the <a> tag to navigate to another webpage, section, or resource.

Example:

<a href="https://www.google.com">Google</a>

When clicked, this link takes the user to Google.

3. Enlist the optional parameters to open a webpage.

The primary optional parameter to open a webpage in a new tab/window is the target attribute of the <a> tag.

Example:

<a href="https://www.example.com" target="_blank">Open in New Tab</a>

Other target values:

  • _self - Opens in the same frame (default)
  • _parent - Opens in the parent frame
  • _top - Opens in the full body of the window

Q4: List out the frequent tags used in text of a webpage and what are they used for?

Tag Description
<html>…</html> Declares the webpage as an HTML document.
<head>…</head> Contains meta-information about the document.
<title>…</title> Sets the title of the webpage (shown in browser tab).
<body>…</body> Contains all visible content on the webpage.
<p> Defines a paragraph.
<h1> to <h6> Headings from largest (<h1>) to smallest (<h6>).
<b> / <strong> Makes text bold.
<i> / <em> Italicizes text.
<u> Underlines text.
<br> Inserts a line break.

These tags help format and organize text on web pages.

5. Explain the role of <body> tag-pair in a document.

The <body> tag defines the main content of an HTML document visible to users.

It contains elements like text, images, links, scripts, and other webpage content.

Everything within the <body> tag (headings, paragraphs) will appear in the browser.

6. How is event-based code used in JavaScript?

Event-based code in JavaScript performs actions when a user interacts with a webpage, such as clicking a button, hovering, or submitting a form.

Example: The onclick event triggers a function when a button is clicked.

7. Infer about External CSS. Where are External CSS generally used?

External CSS refers to styles stored in a separate .css file linked to the HTML document.

It helps maintain consistency and reusability of styles across multiple webpages.

Where Used: In websites with multiple pages sharing the same design.

Example CSS File (styles.css):

body {
    background-color: lightblue;
}
h1 {
    color: navy;
}

Example HTML linking External CSS:

<link rel="stylesheet" href="styles.css">

Changes in the CSS file affect all linked pages.