Bingo, you gotta code consistently... (if for no other reason, so you can keep your own sanity) 😉
Either method works, but I would do them a bit different. (again, it's my style)
<? echo "<td>".$i."</td>"; ?>
<td><? = $i; ?></td>
Sometimes you will find yourself writing your code to work best with the syntax highlighting of your development program. I know I do that, and so it is important to find a good program, learn how to use it, and stick with it...