You cannot use <tr> and <td> tags without a <table> tag. Your <table> tag is missing, which is why they're aren't working.
Also, I'm not sure why you are trying to use <tr> and <td>? You are already using wikitext to create the table, so you should also use wikitext for the cells instead of html.
I would remove all of the <tr> and <td> and just use wikitext. Either that, or remove the wikitext that defines the table and code the whole table in html. But you can't mix the two the way you're currently doing, it doesn't work like that.