Class 8th chapter 2nd Computer

A. Fill in the blanks :
A ________ is the most attractive way of demonstrating information in a precise manner.
Answer: List
An ________ list indents each item in the list and includes a bullet against each item.
Answer: Unordered
The ________ property is applied to define the distance between the borders of the adjoining cells in a table.
Answer: Border-spacing
The ________ attribute of <ol> tags puts the list in the decreasing order.
Answer: Reversed
A ________ list comprises a term followed by its definition.
Answer: Description
B. Write 'T' for true and 'F' for false statements :
An Ordered list automatically begins with the number 0.
Answer: F
The List-style-type property defines the bullet style as the type of list item marker.
Answer: T
The <tr> tag must always exist inside the row tag <td>.
Answer: F
The tag <td> is applied to specify the terms or names.
Answer: F
The default value of empty-cells property is hide.
Answer: F
C. Tick (✓) the correct option :
Unordered lists is also called ________ list.
Answer: a. bulleted
By default, ordered list begins with ________.
Answer: b. 1
With ________ property, you can define the position of the list-item markers.
Answer: a. list-style-position
In description list, ________ tag enables in expressing each term or name.
Answer: b. <dd>
________ property enables in defining the placement of a table caption.
Answer: c. caption-side


1. What is Nested list? How is it different from Ordered or Unordered list? Give an example of nested list.

Answer:
A nested list is a list that is placed inside another list. It is used to show sub-points or categories under a main item. In an ordered or unordered list, items are shown at only one level, but in a nested list, there are multiple levels. This makes the information more structured and clear. For example, a list of fruits can have another list inside it showing types of fruits.


---

2. What are the various types of lists supported by HTML5? Describe each one of them briefly.

Answer:
HTML5 supports three main types of lists. An Ordered List (<ol>) displays items in a specific order using numbers or letters. An Unordered List (<ul>) displays items with bullet points and does not follow any order. A Description List (<dl>) is used to show terms and their definitions using <dt> and <dd> tags. Each type of list is used based on the requirement of presenting data.


---

3. What do you understand by Tables and how are they created in HTML5?

Answer:
Tables are used to display data in the form of rows and columns. They help in organizing information in a structured and readable format. In HTML5, tables are created using the <table> tag. Inside it, <tr> is used for rows, <td> for data cells, and <th> for headings. These tags together help in creating a complete table.


---

4. Write short notes on List-style-image and Empty-cells.

Answer:
List-style-image is a CSS property used to replace the default bullet with an image in a list. It helps in making the list more attractive and visually appealing. Empty-cells is a CSS property used in tables to control the display of borders for empty cells. It can either show or hide the borders of cells that have no data. These properties improve the design and appearance of web pages.


---

5. Explain the various table properties in HTML.

Answer:
Table properties are used to control the appearance and layout of tables. The border property defines the border around the table. Cellpadding is used to add space inside the cell, while border-spacing controls the space between cells. The caption-side property defines the position of the table caption. The empty-cells property controls whether empty cells should display borders or not.


---

6. What is the purpose of Description List?

Answer:
A description list is used to display a list of terms along with their definitions or explanations. It is useful for showing glossary items or name-value pairs. It uses <dl> for the list, <dt> for the term, and <dd> for the description. This type of list helps in presenting information in a clear and meaningful way. It is commonly used in educational and informational websites.

Post a Comment