मराठी

What for are rowspan and colspan attributes used?

Advertisements
Advertisements

प्रश्न

What for are rowspan and colspan attributes used?

कोड लेखन
दीर्घउत्तर
Advertisements

उत्तर

Sometimes, a table cell is bigger than other cells. Its span is spread to more rows or columns. Such cells can be created with rowspan and colspan. For instance, the following code will produce the table shown below in which cells have different span.

<HTML>
<BODY>
<TABLE BORDER>
<TR>
    <TD ALIGN=center ROWSPAN=2 COLSPAN=2>A</TD>
    <TD>1</TD>
    <TD>2</TD>
</TR>
<TR>
    <TD>3</TD>
    <TD>4</TD>
</TR>
<TR>
    <TD ALIGN=center ROWSPAN=2 COLSPAN=2>C</TD>
    <TD ALIGN=center ROWSPAN=2 COLSPAN=2>D</TD>
</TR>
<TR>
</TR>
</TABLE>
</BODY>
</HTML>

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: HTML- II: Images, Links and Tables - Assisted Practice [पृष्ठ १७६]

APPEARS IN

सुमिता अरोरा Computer Applications [English] Class 10
पाठ 4 HTML- II: Images, Links and Tables
Assisted Practice | Q 4. | पृष्ठ १७६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×