Total Pageviews

Friday, August 28, 2026

Chapter 8: Advanced Features of HTML St Jude's High School class -7

Created by Bijan Krishna Paul

Chapter 8: Advanced Features of HTML

Section A: Multiple Choice Questions (30 Marks)

1. Which HTML tag is used to create an unordered (bulleted) list on a web page?

A) <ol>
B) <ul>
C) <li>
D) <list>

2. Which tag is used to define individual items inside both ordered and unordered lists?

A) <item>
B) <li>
C) <dt>
D) <ul>

3. Which attribute of the <ol> tag allows starting numbering from a custom value like 101?

A) type
B) start
C) value
D) reversed

4. Which attribute of the <img> tag specifies the image file path or URL?

A) href
B) src
C) alt
D) link

5. What HTML attribute provides alternative text description if an image fails to load?

A) title
B) alt
C) src
D) text

6. Which tag is used to create hyperlinks connecting to another web page or website?

A) <link>
B) <a>
C) <href>
D) <url>

7. The mandatory attribute of the anchor <a> tag defining the destination URL is:

A) src
B) href
C) target
D) action

8. Linking one section of a web page to another section on the same page is called:

A) External linking
B) Internal linking
C) Inline linking
D) Web linking

9. Which tag marks the beginning and end of a table structure in HTML?

A) <tr>
B) <table>
C) <td>
D) <tab>

10. Which tag defines a horizontal row of cells inside an HTML table?

A) <td>
B) <tr>
C) <th>
D) <tc>

11. Which tag defines standard data cells inside a table row?

A) <th>
B) <td>
C) <tr>
D) <caption>

12. Which tag defines header cells in a table, displaying text in bold and center-aligned by default?

A) <head>
B) <th>
C) <td>
D) <caption>

13. Which tag is used to specify a title heading for an HTML table?

A) <title>
B) <caption>
C) <header>
D) <summary>

14. What CSS property collapses double adjacent cell borders into a single border?

A) border-spacing: collapse
B) border-collapse: collapse
C) table-collapse: single
D) collapse: border

15. What CSS property defines space inside a cell between the cell border and its content?

A) margin
B) padding
C) border-spacing
D) float

16. Which attribute allows a table cell to span horizontally across multiple columns?

A) rowspan
B) colspan
C) width
D) span

17. Every web form interactive area begins with which tag?

A) <input>
B) <form>
C) <field>
D) <action>

18. Which attribute of the <form> tag specifies the script page or email address to receive submitted data?

A) method
B) action
C) target
D) src

19. Which form element allows a user to select only ONE option among several choices (e.g., Gender)?

A) Checkbox
B) Radio Button
C) Textbox
D) Text Area

20. Which form element acts as a toggle switch allowing selection of multiple choices simultaneously?

A) Radio Button
B) Checkbox
C) Password Box
D) Reset Button

21. Rashmi wants users to choose only one option for Gender on her web form. Which input type should she use?

A) <input type="radio">
B) <input type="checkbox">
C) <input type="text">
D) <input type="submit">

22. Which button clears all entered inputs in a form and restores elements to default initial states?

A) Submit Button
B) Reset Button
C) Cancel Button
D) Radio Button

23. CSS float property values commonly used to align images alongside text paragraphs are:

A) top and bottom
B) left and right
C) center and justify
D) inside and outside

24. Is the <img> tag a container tag or an empty tag?

A) Container tag
B) Empty tag
C) Root tag
D) Structural tag

25. Which attribute sets the maximum number of characters allowed inside a single-line text input field?

A) size
B) maxlength
C) length
D) limit

26. Which attribute selects a radio button or checkbox by default when the form loads?

A) selected
B) checked
C) active
D) default

27. In an ordered list <ol type="A">, how will list items be numbered?

A) Uppercase letters (A, B, C...)
B) Lowercase letters (a, b, c...)
C) Roman numerals (I, II, III...)
D) Standard numbers (1, 2, 3...)

28. What is the default bullet symbol for an unordered list <ul>?

A) Disc (filled circle)
B) Square
C) Circle (hollow circle)
D) Arrow

29. An image displayed directly within a line of text on a web page is an:

A) Inline image
B) External image
C) Hyperlinked image
D) Anchored image

30. The attribute in <ol> that arranges numbering in descending order is:

A) reversed
B) start
C) descending
D) order

Section B: Assertion & Reason Questions (30 Marks)

Directions: Choose the correct option for each question:

  • A: Both Assertion (A) and Reason (R) are true, and Reason (R) is the correct explanation of Assertion (A).
  • B: Both Assertion (A) and Reason (R) are true, but Reason (R) is NOT the correct explanation of Assertion (A).
  • C: Assertion (A) is true, but Reason (R) is false.
  • D: Assertion (A) is false, but Reason (R) is true.

31. Assertion (A): The <ol> tag creates numbered lists on web pages.
Reason (R): Ordered lists are ideal for steps where sequence order is important, such as recipes.

32. Assertion (A): The <img> tag requires a closing </img> tag.
Reason (R): The <img> tag is an empty tag in HTML.

33. Assertion (A): Alt attribute text displays when an image fails to load.
Reason (R): Alt provides descriptive text accessibility for slow connections or missing source files.

34. Assertion (A): Radio buttons allow selecting multiple options in the same group simultaneously.
Reason (R): Radio buttons sharing the same name attribute enforce mutually exclusive single choices.

35. Assertion (A): Checkboxes allow users to select one or more items independently.
Reason (R): Checkboxes act as toggle switches that can be ON or OFF individually.

36. Assertion (A): Anchor tag <a> requires closing tag </a>.
Reason (R): The anchor tag is a container tag enclosing the hyperlink text or image.

37. Assertion (A): Table header cells <th> default to left-aligned text alignment.
Reason (R): By default, <th> contents are displayed bold and center-aligned.

38. Assertion (A): border-collapse: collapse merges adjacent table cell borders.
Reason (R): It prevents double-bordered grid lines, creating clean single lines between table cells.

39. Assertion (A): Reset button sends form field data to a web server script.
Reason (R): Submit button sends form field name-value pairs to the action URL.

40. Assertion (A): External linking connects sections within the exact same web page.
Reason (R): Linking different web pages or separate domain websites is called external linking.

41. Assertion (A): The <caption> tag provides a title heading for an HTML table.
Reason (R): The <caption> tag must be placed immediately after opening the <table> tag.

42. Assertion (A): <ol start="5"> begins numbering list items from 5.
Reason (R): The start attribute overrides the default starting list index of 1.

43. Assertion (A): Inline images are viewed in a separate new browser tab when clicked.
Reason (R): Inline images display directly embedded inside body text lines when the page loads.

44. Assertion (A): Padding property adjusts space inside table cells around text content.
Reason (R): Padding helps prevent cell text from touching surrounding border lines directly.

45. Assertion (A): The href attribute defines the target document address in an anchor tag.
Reason (R): Clicking hypertext redirects the browser to the destination path in href.

46. Assertion (A): colspan="2" merges a cell vertically across two rows.
Reason (R): rowspan="2" merges a cell across vertical rows, while colspan merges horizontal columns.

47. Assertion (A): The <input> tag requires an explicit closing </input> tag.
Reason (R): The <input> tag is an inline empty element in HTML forms.

48. Assertion (A): The reversed attribute counts an ordered list backwards.
Reason (R): Setting reversed displays numbered items in descending sequential order.

49. Assertion (A): <input type="password"> hides user keystrokes using mask characters.
Reason (R): Password boxes mask text input with bullets or asterisks to protect sensitive entry.

50. Assertion (A): Standard table data cells <td> display text centered by default.
Reason (R): By default, standard data cells <td> are left-aligned horizontally and middle-aligned vertically.

51. Assertion (A): Hyperlink hover mouse pointer turns into a little hand icon.
Reason (R): Browsers change the cursor visual to signal clickable hyperlinked elements.

52. Assertion (A): Absolute URLs refer to relative local image filenames in the same folder.
Reason (R): Absolute URLs include the full website domain protocol address (e.g., http://www.google.com/pic.jpg).

53. Assertion (A): CSS float: right moves an image to the right side of wrapped text.
Reason (R): Float allows surrounding paragraph text to flow smoothly alongside specified image sides.

54. Assertion (A): Forms enable visitors to submit comments, feedback, and registrations.
Reason (R): Forms collect interactive user inputs through fields like textboxes, radio buttons, and checkboxes.

55. Assertion (A): The method attribute value "Post" is default when emailing forms.
Reason (R): The default method value is "Get", while "Post" passes data securely to an action URL.

56. Assertion (A): Bulleted lists are created using the <ul> tag.
Reason (R): Unordered lists use bullets like disc, circle, or square to mark non-sequential items.

57. Assertion (A): Clicking a hyperlinked image opens its designated URL link destination.
Reason (R): Enclosing an <img> tag inside an anchor <a href="..."> tag converts the image into a clickable link.

58. Assertion (A): HTML tables can only store numeric numbers.
Reason (R): Table cells <td> can contain text, images, hyperlinks, or lists.

59. Assertion (A): Border-spacing defines spacing distance between uncollapsed cell borders.
Reason (R): Border-spacing accepts horizontal and vertical values (e.g., 10px 20px).

60. Assertion (A): HTML forms require the <form> opening tag and </form> closing tag.
Reason (R): The <form> tag defines the boundary container for all interactive input controls.

Section C: Image & Visual Feature Based Questions (10 Marks)

61. Look at the code snippet visual:
<ol start="5" reversed>
<li>Time Management</li>
<li>Consistent Effort</li>
<li>Lifelong Learning</li>
</ol>
What sequence number will be displayed beside "Time Management"?

A) 5
B) 1
C) 3
D) 101

62. Observe the browser rendering visual:

image of a sunrise The sunrise paints the sky with warm hues...

Because the image file was not found, what visual element is displayed in its place?

A) The text "image of a sunrise"
B) A blank black screen
C) A video clip
D) A broken table

63. Identify the form control visual:
GENDER:
(•) Male ( ) Female ( ) Other
What type of input control is shown here?

A) Radio buttons
B) Checkboxes
C) Text area
D) Reset button

64. Identify the form control visual:
[x] I agree to the terms and conditions
What type of input control is shown here?

A) Checkbox
B) Radio button
C) Password box
D) Submit button

65. Look at the code snippet visual:
<a href="click.html">CLICK HERE</a>
What text will appear underlined on the rendered web page as hypertext?

A) CLICK HERE
B) click.html
C) href
D) <a>

66. Observe the table rendering visual:

Company Staff Details
IDName
101Ravi

Which tag created the title header text "Company Staff Details" centered above the table?

A) <caption>
B) <title>
C) <th>
D) <h1>

67. Scenario Visual: Mohit wants to display image logo links for Wikipedia and Google. Which combination of tags will make an image clickable as a hyperlink?

A) <a href="..."><img src="..." alt="..."></a>
B) <img src="..." href="...">
C) <table><img src="..."></table>
D) <ul><img src="..."></ul>

68. Identify the form action buttons visual:
<input type="submit" value="Register">
<input type="reset" value="Reset">
What happens when the user clicks the button labeled "Reset"?

A) Clears all input entries back to default states
B) Sends form data to the server
C) Closes the browser tab
D) Deletes the HTML file

69. Scenario Visual: Rashmi is creating a course registration form requiring students to choose interested subjects (Math, Science, English). Since students can pick multiple subjects, which input type should she use?

A) Checkbox
B) Radio button
C) Password box
D) Reset button

70. Look at the CSS style block visual:
table { border-collapse: collapse; padding: 5px; }
What effect does padding: 5px; have inside table cells?

A) Creates 5px space between cell borders and cell contents
B) Makes the font size 5px
C) Changes border color to blue
D) Deletes the table background
Created by Bijan Krishna Paul

No comments:

Post a Comment