How to create Tables in Html?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to create Tables in Html??

28th Nov 2016, 9:14 AM
Rudransh Joshi
Rudransh Joshi - avatar
7 Answers
+ 2
Table creation in html is made using the table, tr and td tags. Below you can find a mock example: <table> <tr> <td>...</td> <td>...</td> <td>...</td> </tr> <tr> <td>...</td> <td>...</td> <td>...</td> </tr> ... <tr> <td>...</td> <td>...</td> <td>...</td> </tr> </table> You can also apply some styling on it, depending on your design requests.
28th Nov 2016, 9:28 AM
Adrian Nastase
Adrian Nastase - avatar
+ 3
Thanks Adrian Nastase
28th Nov 2016, 9:28 AM
Rudransh Joshi
Rudransh Joshi - avatar
+ 3
Thanks AK
28th Nov 2016, 9:39 AM
Rudransh Joshi
Rudransh Joshi - avatar
+ 3
All of u thaks
7th Dec 2016, 9:12 AM
Rudransh Joshi
Rudransh Joshi - avatar
+ 1
there is a <th> tag for table heading aswell. Use is like <td>
28th Nov 2016, 9:38 AM
Andreas K
Andreas K - avatar
+ 1
<table></table> - opened and closed table <tr></tr> - horizontal position of table <td></td> - socket in table <th></th> - title of table
28th Nov 2016, 11:43 AM
alexyork
alexyork - avatar
0
To complete the answers above you can also subdivise table in 3 parts with <thead> </thead>, <tbody> </tbody> and <tfoot> </tfoot>.
28th Nov 2016, 7:22 PM
romain pardoux
romain pardoux - avatar