How to create nest tables within tables in HTML?



How to create nest tables within tables in HTML?..

Answer / chaitu

We can create nest table i.e. table inside a table. To create table we use following attributes:

<table>……</table>: declare starting and ending of table.

<tr>…</tr>: declare table row.

<td>…</td>: table data.

<table>

<tr>

<td>first cell of the outer table</td>

<td>second cell of the outer table,

creating second table inside the first table

<table>

<tr>

<td>first cell of the second table</td>

<td>second cell of the second table</td>

</tr>

</table>

</td>

</tr>

</table>

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More HTML DHTML XHTML Code Interview Questions

Is it possible to express a date range using a single time element?

1 Answers  


Describe when it’s appropriate to use the small element and provide an example?

1 Answers  


What’s the difference between the meter element and the progress element?

1 Answers  


How to create nest tables within tables in HTML?

1 Answers  


What is the mark element? Can you describe an example of use for this element?

1 Answers  






How to create a button which acts like a link?

1 Answers  


Which network design layer provides a connection point for end user devices to the network? access core distribution networkby a networking device

3 Answers  


How do I link to a location in the middle of an HTML document?

1 Answers  


Explain marquee tag.

1 Answers  


Can you describe why hgroup was dropped and how the markup can be addressed today with an example?

1 Answers  


What is the longdesc attribute? Can you explain its purpose?

1 Answers  


Consider the following markup: <figure> <picture> <source media="(min-width: 40em)" srcset="large.jpg 1024w, medium.jpg 640w, small.jpg 320y"> <img src="medium.jpg" alt="London by night"> </picture> <figcaption>A landscape of London by night</figcaption> </figure> Is it valid? If not, can you explain why?

1 Answers  


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)