I currently have a table structure for what I need.
I have something like the following
Field1 Field3 Field5
Field2 Field4 Field6
Note that Field1,Field2 are in a <td>, Field3,Field4 are in a <td>, Field5, Field6 are in a <td>.
I like to put a <legend> around say Field1,Field2 but I have a issue as legends cannot go inside of a <tr>. How can I then add a legend. One alternative that I thought about was to just scrap the <table> like I am doing now and use <div>. Please let me know if this would be the correct way of going about this or if there is a way to add <legend> the way I need it.
According to your description, you want a legend for two fields that are inside a table cell. This is simple:
Whether this addresses the question you wanted to ask is a different matter. The question is very abstract and does not give a hint of what you are really doing, or what the real problem is.