JavaScript How to Iterate Table Rows in JavaScript HTML tables are defined with the tag, containing rows and cells tags. To iterate over rows in JavaScript, you can use document.querySelectorAll and forEach loops.