Data tables are most efficient way to generate tables in your html code. Data tables is a jquery plugin for creating fully responsive table listings. It also provides search, sort and pagination. It gives developer a lot to customize according to the need.
I am going to use a basic example and it also ca be used to show data from the database.