I have html page in an app, I want to submit data to sharepoint using REST, so I don't have access to
$("#__REQUESTDIGEST"). How do I get the request digest from my html page?
There are situations/scenarios where the request digest is not available, for instance when you are developing a single page app. So in this case, it's your app code's responsibility to retrieve the value and refresh it. Please see this blog post: