Question: how to export table data to excel in html?
Answer: Include jQuery library and the jQuery table2excel plugin in the Html document. ... 
Create an 'Export' button to export table data to an Excel file manually. ... 
Call the plugin on the table and pass the following options.