Welcome aboard! We are happy you are here and wish you good net-raft!
<html>
<head>
<style>
td{
text-align: center;
color: blue;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<table></table>
<script type="text/javascript">
var table = document.querySelector("table");
var tr = document.createElement("tr");
for (var i = 0; i < 5; i++) {
var th = document.createElement("th");
th.innerText = "TEST";
tr.appendChild(th);
}
table.appendChild(tr);
for (var u = 0; u < 5; u++) {
var tr1 = document.createElement("tr");
for (var j = 0; j < 5; j++) {
var td = document.createElement("td");
td.innerText = "hello";
tr1.appendChild(td);
}
table.appendChild(tr1);
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.9K 508