4. What is table? Write its advantages.
Ans:
Tables arrange data in rows and columns and provide an attractive way to represent information.
Advantages of a table are: 5. Name and define the commonly used terms for describing a Table's data.
Ans:
The commonly used terms are: 6. What are the attributes which help in setting the horizontal and vertical alignment of the text in a table?
Ans:
The attributes which set the horizontal and vertical alignment of the text in a Table are Align and Valignrespectively.
Align:The Align attribute aligns the text within the cell either to the left, right, or center. The default alignment of the content of table cells is left and vertically centered.
Example:<tr align ="center "> (Aligns the content to the center horizontally)
Valign:Valign attribute is used with <TD> tag and sets the vertical alignment of data in a coloumn. The data can be aligned to the top, middle, or bottom.
Example:<td Valign="Bottom"> (Aligns the content to the bottom of a cell).
7. Explain the use of attributes, Frames and Rules, in an HTML table.
Ans:
These attributes improve the amount of control one can execute over the borders of a table. The Frame attribute indicates which sides of the tables outside border should be visible, whereas the Rules attribute specifies which sides of the table's inside border should be visible.
8. Distinguish the between HREF and name attributes of <A> tag with the help of an example.
Ans:
HREF is an attribute of <A>(anchor) tag,which defines the document to which the link leads. The Anchor tag <A> is used to mark the text as a hyperlink, which a user can click to display the document, anchored to it. Being a container tag, it requires </A> closing tag to mark the end of the text or images.
9. What is the purpose of a named anchor?
Ans:
A named anchor looks like a hyperlink where the HTML code is concerned but does not function as a link. The anchor only has a name. The text included in the tag is not underlined or displayed in blue like other standard links. You will not even be able to click it. It works as an invisible marker in the document to which the link will lead. It has the normal style of a block of text and not the appearance of a hyperlink.

SECTION 3 : APPLICATION BASED QUESTIONS - (SOLVED)

1. Preeti has to insert hed photo on her home page with the following dimensions:border 3, width 250, height 400. The name of the image should be My photo. Help preeti with the correct coding.
Ans.
<IMG src="my photo.bmp" Alt="My photo" border="3" width="250" height="400">
2. Saksham wants to customized the height and width of the table but is unable to do so. Can you help him in completing the task?
Ans:
He can use the Height and Width attribute of the table.

Learning computers with K ips

page no:140
         
Home