<table border="1"> <tr> <% For i = 1 to 16 %> <td>foto <% = i %></td> <% If i MOD 4 = 0 Then Response.Write "</tr><tr>" next %> </tr> </table>