0% found this document useful (0 votes)
30 views2 pages

Chapter 5

Uploaded by

revathyrenjit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Chapter 5

Uploaded by

revathyrenjit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Answer the following:

1. Explain the difference attributes of the <TABLE> tag.

TH stands for Table Heading. This is used to specify the table heading.
TR stands for Table Row. This is used to create rows in a table.
TD stands for Table Data. This is used to create an individual cell in a table

2. Differentiate between <UL> and<OL> tags.


<UL>: This tag creates an unordered list, where items are marked with
bullets.
<OL>: This tag creates an ordered list, where items are marked with
numbers .
3. Which tag is used to set the spaces between the table cells?
Border-spacing specifies the distance between the borders of
adjacent cells in a table.
4. Why do you need definition list? Support your answer with an
example.
A definition list is used to display terms and their meanings in a
simple, organized way. Unlike regular lists, it’s not just a list of
items but a way to show each term with its explanation. So, as
the name suggests there are three tags involved in this
combination: <DL> for Definition Lists, <DT> for Definition
Terms and <DD> for Definition Description.
Example::
<dl>
<dt>HTML</dt>
<dd>A language for creating web pages.</dd>

<dt>CSS</dt>
<dd>A language for styling web pages.</dd>
</dl>
5. How do you create a table? Give an example of nested list.
Table stores the data in rows and columns. In HTML, tables are created with the <
TABLE > tag.

To add a table in your web page, follow the given steps:


Step-I: Type the tag <TABLE> with the attributes.
Step-2: Type the tag <TR> with the attributes.
Step-3: Type the tag <TH> and then type the table heading.
Step-4: Type the closing tag </TH>.
Repeat step-3 and step-4 to add more headings.
Step-5: Type the closing tag </TR>.
Step-6: Now, again type the tag <TR> with the attributes.
Step-7: Type the tag <TD> with the attributes and then type the text.
Step-8: Type the closing tag </TD>.
Repeat step-7 and step-8 to add more columns.
Step-9: Type the closing tag </TR>.
Repeat step-6 to step-9 to add more rows.
Step-10: Type the closing tag </TABLE>.
Under the heading 'Table Tag'
6. Write a short note on nested list.
A list created within a list is known as a
Nested list.
(a) Subject

 Maths
 English
 Science

(b) Hobbies

 Playing games
 Listening Songs

Both lists, ordered and unordered can be nested together. This is done by writing
an entire OL or UL under the <LI> tag.
The following examples show you different nested lists.
Unordered List Nested Within Unordered List
7. ‘Lists makes the data more attractive’. Justify the statement.
Lists improve readability by organizing information into a structured format.
Bullet points or numbered lists highlight each item, making it easier to
understand and more attractive.

(a) Subject
 Maths
 English
 Science
(b) Hobbies
 Playing games
 Listening Songs
8. Aditi creates a web page using HTML. She wants to insert a table but she does not
know the tag to be used. Suggest to her the tab she should use for the same.
Aditi should use < Table>tag to create table in her HTML
Webpage.

You might also like