Computer Sciece Class-Viii ch-8 Q.A.
Computer Sciece Class-Viii ch-8 Q.A.
Computer Sciece Class-Viii ch-8 Q.A.
LESSON- 08
ii) Ordered list:- This will use different schemes of numbers or alphabets to list items.
iii) Definition (description) list:- This arranges items in the same way as they are arranged in
a dictionary.
2. What are the various list properties which you can use in HTML? Explain in brief.
Answer:- The different list properties allow us to:
Set different list item markers for ordered lists.
Set different list item markers for unordered list.
Set an image as the list item marker.
Add background colours to list items.
The list-style-type property allows us to control the shape or style of bullet point in the case
of unordered lists and the style or numbering characters in ordered lists.
The list-style-image allows us to specify an image that we can use our own bullet style and
background colours add background colour to lists and list items.
3. Discuss the various attributes which can be used with ordered list?
Answer:- Attribute of order list are three types:-
i) Start:-It is used to start the number from which we want to start the list.
USAGE- <ol start= “10”>
OUTPUT- List will start from 10 to instead of 1
ii) Reversed – It is used which start the numbering in reverse order
USAGE- <ol start= “10” reversed >
OUTPUT- List will start from a bigger number. The last list will have 10.
iii) Type – It is used to specify the type of number which can be 1, A, a, I, or I
USAGE- <ol start= “i”>
OUTPUT- List will be in roman numerals like i, ii, iii, etc.
4. What are tables? Which HTML tags are used to create a table? Explain in brief.
Answer:- Tables are used to represent tabular data. Tables are very flexible and an attractive
way of presenting information in the form of rows and columns.
The HTML tables are created using the <table> tag in which the <tr> tag is used to create
table rows and <td> tag is used to create data cells.
A table header is defined with the <th> tag. The<caption> tag is used to specify the title
for the table.
5. What are the table properties related to alignment of text in the cells? Explain them with
example.
Answer:- The text-align and vertical-align properties are used to set the horizontal and
vertical alignment of the text respectively in a table. These properties are used with the
<th> or <td> tag .
Syntax:
text –align:value; for Horizontal Alignment
Where value is left or center or right
Vertical-align:value; For Vertical Alignment
Where value is top or middle or bottom
F. Write short note on the following:
1. Caption-side
Answer:- This property specifies the placement of a table caption.
2. Empty-cells
Answer:- This property sets whether or not to display borders on empty cells in a table.
3. Border
Answer:- This property helps in specifying the border of a type which includes width, border
style, and border-color of the table including its cells.
4. Reversed Attribute of <ol> tag
5. Answer:- This property is used which start the numbering in reverse order.
G. Solve the jumbles:
a) ROEDDER REORDER
b) UROENDER UNORDER
c) ESDPCRIIOTN DESCRIPTION
d) BLTEA TABLE
e) NMALGINTE ALIGNMENT
H. Match the following:
a) OL iv) Ordered
b) UL v) Unordered
c) DT i) Description
d) TR iii) Row
e) TD ii) Data