How we can have different cells in each row in <table>?



How we can have different cells in each row in <table>?..

Answer / Pramod Kumar Yadav

To have different cells in each row of a table in HTML, you can use the `<td>` (table data) element to create individual cells. Here's an example:

```html
<table border="1">
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
</tr>
</table>
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

Is html coding?

1 Answers  


What is xpath in html?

1 Answers  


What is formatting in html?

1 Answers  


What is a list tag?

1 Answers  


What is html5 and why is it important?

1 Answers  


What is canvas in html5? How to write a canvas?

1 Answers  


What is the use of a span tag?

1 Answers  


What are the versions of html?

1 Answers  


How to align <table> right/left in html?

1 Answers  


Should you use br tags?

1 Answers  


What is the difference between html5 and html4?

1 Answers  


Explain Block Elements?

1 Answers   HCL,


Categories