Hi Varshini,
I think Tim helped you in your previous post and you were able create subtable using <h:datatable>, then why did you want to move to html table?
And in turn when the page renders it generates html code, So you must be able to do same things with <h:datatable>