Difference between the CELLSPACING and CELLPADDING.

Q15. Explain the difference between the CELLSPACING and CELLPADDING attributes of the <TABLE> tag with the help of an example.

Ans. The CELL PADDING attribute allows the amount of space, in pixels, between the edges of a cell and its content. On the other hand, the CELLSPACING attribute allows the amount of space, in pixels, between the borders of cells of a table.

Example for CELLSPACING and CELLPADDING attributes:

<HTML>

<HEAD>

<TITLE> CELLSPACING and CELLPADDING attributes

</TITLE> Read More …

Purpose of using the CELLPADDING and CELLSPACING.

Q7. What is the purpose of using the CELLPADDING and CELLSPACING attributes in a table?

Ans. The purpose of the CELLPADDING attribute is to specify the space between the edges of a cell and its content. On the other hand, the CELLSPACING attribute is used to specify the space between the borders of a cell.

Difference between an ordered and unordered list.

Q5. What is the difference between an ordered and unordered list?

Ans. In an unordered list, the list items are represented in the bulleted form. The <UL> tag is used to define items in an unordered format; whereas, in an ordered list, the list items are represented in the alphabetical, numerical, or roman numerical form. The <OL> tag is used to create an ordered list.

Example of ordered list:

Read More …

Distinguish between container and empty tags.

Q21. Distinguish between container and empty tags.

Ans. The container tag needs both starting and ending tags. These tags will affect the text that is appearing between the starting and ending tags. The empty tag needs only the starting tag. These tags only complete their specific work.