Code HTML Penggunaan Colspan, Rowspan dan empty cell

<H4>Cell that spans two columns:</H4>
<TABLE BORDER=1>
 <TR>
  <TH>Name</TH>
  <TH COLSPAN=2>Telephone</TH>
 </TR>
 <TR>
  <TD>Bill Gates</TD>
  <TD>555 77 854</TD>
  <TD>555 77 855</TD>
 </TR>
</TABLE>
<H4>Cell that spans two rows:</H4>
<TABLE BORDER=1>
 <TR>
  <TH>Name:</TH>
   <TD>Bill Gates</TD>
 </TR>
 <TR>
  <TH ROWSPAN=2>Telephone</TH>
   <TD>555 77 854</TD>
 </TR>
 <TR>
   <TD>555 77 855</TD>
 </TR>
</TABLE>
<H4>Empty Cell</H4>
<TABLE BORDER=1>
 <TR>
  <TD>Ini Text</TD>
  <TD>Ini Text</TD>
 </TR>
 <TR>
  <TD> </TD>
  <TD>&nbsp;</TD>
 </TR>
</TABLE>

Dan Berikut Adalah Hasil:

Cell that spans two columns:

Name Telephone
Bill Gates 555 77 854 555 77 855

Cell that spans two rows:

Name: Bill Gates
Telephone 555 77 854
555 77 855

Empty Cell

Ini Text Ini Text

Komentar

Postingan Populer