Do I just put the html in a page when enqueueng or do I also have to reference js file from the html page [closed]

When you enqueue a script with wp_enqueue_script() it adds the <script> tag part for you. If you have HTML that the script interacts with you will need to add that HTML to the page another way. You should not include the script tag in any HTML.

There are many options for adding HTML to a page, depending on where you need it:

Although I’d say that anything other than using a block is becoming obsolete at this point.