by pup do you mean php?
HTML and JS are completely different. HTML is just a markup language, changing the way things look. javascript is an actual programming language, and you can do sums and stuff with it.
to change the text of a table,

:
document.getElementById();
:)