var table = document.createElement('table');
for (var i = 1; i < 4; i++){
    var tr = document.createElement('tr');   

    var td1 = document.createElement('td');
    var td2 = document.createElement('td');
    var td3 = document.createElement('td');

    var texte1 = document.createTextNode('Texte1');
    var texte2 = document.createTextNode('Texte2');
    var texte3 = document.createTextNode('Texte3');

    td1.appendChild(texte1);
    td2.appendChild(texte2);
    td3.appendChild(texte3);
    tr.appendChild(td1);
    tr.appendChild(td2);
    tr.appendChild(td3);

    table.appendChild(tr);
}
document.body.appendChild(table);
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.