<!-- CSS --> <style type="text/css"> table th, table td{ padding: 5px; } </style> <div> <div> <input type="file" name="file" id="file" accept=".csv" > <br><br> <input type="button" id="btnsubmit" value="Submit" onclick="readCSVFile();" > </div> <br><br> <!-- List CSV file data --> <table id="tblcsvdata" border="1" style="border-collapse: collapse;"> <thead> <tr> <th>S.no</th> <th>Username</th> <th>Name</th> <th>Email</th> </tr> </thead> <tbody> </tbody> </table> </div>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter