GR 9 - Chp3 - Notes
GR 9 - Chp3 - Notes
Exercise
Solve the following MCQs.
1) Everything in HTML is identified on the basis of
a) Brackets C) Tags
b) Title b) Image
10) The first value assigned to a variable after declaration is called ……………….
a) Beginning value c) Initialization
b) Starting value d) Substitution
4. List out the frequent tags used in text of a webpage and what are they used for?
ANS:
✓ <p>: Defines a paragraph.
✓ <h1> to <h6>: Define headings, from largest (<h1>) to smallest (<h6>).
✓ <b>: Makes text bold.
✓ <i>: Italicizes text.
✓ <u>: Underlines text.
✓ <span>: Applies inline styles to text.
✓ <br>: Inserts a line break.
7. Infer about the External CSS? Where are External CSS generally used?
ANS: External CSS refers to a separate stylesheet file that contains CSS rules, linked to an HTML document using
the <link> tag. It is generally used for maintaining consistency across multiple webpages and simplifying code
management. Example:
2|Page
Gr: 9 Unit 3 Date: 2/9/2024
Answer the following Long Response Questions (LRQ).
4. With the help of sample code, highlight different methods to incorporate CSS code in a HTML webpage.
ANS:
• Inline CSS
• Internal CSS
3|Page
Gr: 9 Unit 3 Date: 2/9/2024
• External CSS
5. Sketch steps and provide code to apply border and color to a table in a webpage.
ANS:
• Create a table using the <table> tag.
• Use CSS to style the border and color.
Code:
6. Discuss the functionality JavaScript can provide in a webpage with the help of a suitable example code.
ANS: JavaScript provides interactivity, dynamic content updates, form validation, and animations.
Example:
4|Page
Gr: 9 Unit 3 Date: 2/9/2024
7. Articulate steps and write code to create a scrolling text on a webpage.
ANS: Use the <marquee> tag to create scrolling text.
Code:
8. Enlist steps to add a video clip in a website which starts playing as the web page loads.
ANS:
1. Use the <video> tag in HTML.
2. Add the autoplay attribute to start playing the video automatically.
Code:
9. Cite steps for compiling the result of your last examination in a tabular form and display it in a webpage.
ANS:Steps:
1. Use the <table> tag to create a table.
2. Include headers and rows with the examination data.
Code:
5|Page