How can one retain HTML form info when hitting the back button? Is this a default HTML or Browser behavior? Or is it Browser dependent?
It is default browser behavior, but ONLY if the page containing the form is cache-able, e.g. has headers set such that the browser is allowed to cache it.
How does SO's form remember previous input values?
That i s not a browser behavior, it depends on the technology/framework you use