Parho

Class 9 Computer Science · Chapter 5

Chapter 5: Web Development with HTML, CSS, and JavaScript

Class 9 Computer Science notes for the Punjab textbook: the chapter in short, the points to remember, the definitions and the formulas, with questions and tests.

  • 7 definitions
  • 6 key points
  • 2 formulas
  • 81 questions with answers

Chapter 5

All notes and resources

Pick one; the notes are on this page, the rest open their own page.

The chapter in short

Web pages are built with three languages. HTML gives a page its structure and content, CSS controls how it looks, and JavaScript makes it respond to the user.

The chapter covers the structure of an HTML document, common tags and attributes, links, images, lists, tables and forms; CSS selectors and properties; and JavaScript basics such as variables, functions and events.

HTMLTagAttributeCSSSelectorJavaScript

Key points

  • An HTML page has <html>, <head> (with <title>) and <body>.
  • Most HTML elements have an opening and a closing tag, such as <p>…</p>; attributes add information, such as href and src.
  • <a href> makes a link, <img src> shows an image, <ul>/<ol> make lists and <table> makes a table.
  • CSS can be inline, internal (in <style>) or external (in a .css file); external CSS styles many pages at once.
  • A CSS rule has a selector and declarations: p { color: blue; }
  • JavaScript runs in the browser; it can react to events such as a button click and change the page.

Definitions

  1. 1

    HTML

    HyperText Markup Language, used to structure the content of web pages.

  2. 2

    Tag

    A keyword in angle brackets that marks the start or end of an HTML element.

  3. 3

    Attribute

    Extra information about an HTML element, written in its opening tag.

  4. 4

    CSS

    Cascading Style Sheets, used to set the appearance of web pages.

  5. 5

    Selector

    The part of a CSS rule that chooses which elements to style.

  6. 6

    JavaScript

    A programming language that makes web pages interactive.

  7. 7

    Hyperlink

    A link from one web page or place to another.

Formulas

Page skeleton

<html><head><title>…</title></head><body>…</body></html>

CSS rule

selector { property: value; }

Ready to test chapter 5?

Answer the chapter's questions and see your marks the moment you finish.

Take the test

Parho for Android is coming

Join early access and be the first to get the app: tests, notes and solutions on your phone.

FAQ

Questions students ask

What is Class 9 Computer Science chapter 5 about?

Web pages are built with three languages. HTML gives a page its structure and content, CSS controls how it looks, and JavaScript makes it respond to the user.

Which definitions should I learn?

This chapter has 7 definitions: HTML, Tag, Attribute, CSS, Selector, JavaScript and Hyperlink.

Which formulas are in this chapter?

Page skeleton: <html><head><title>…</title></head><body>…</body></html>; CSS rule: selector { property: value; }.

How do I practise this chapter?

Read the notes, then answer the chapter's questions without looking (there are 81, with answers), and take the chapter test.

Are these notes free?

Yes. Every notes page, its questions with answers and its tests are free, with no account needed.

Notes written by Parho for the Punjab textbook. Spotted a mistake? Tell us.