<div>tag is a good option no doubt but before i was able to do the same work by <table> easily. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

<div>tag is a good option no doubt but before i was able to do the same work by <table> easily.

which tag to prefer

4th Oct 2017, 11:52 AM
Nilesh Tanwar
Nilesh Tanwar - avatar
1 Answer
+ 7
<div> because it defines a section in your HTML document whereas <table> just defines a table. BUT <div> and <table> are important (not for the same things).
4th Oct 2017, 3:26 PM
Mattéo