How to embed hubspot form script in html?

I have an index.html file set up locally to test out embedding a hubspot form, but it’s only showing a blank white page when I refresh. Here is what the code looks like:

<html lang=“en”>

<head>

<meta charset=“UTF-8”>

<meta name=“viewport” content=“width=device-width, initial-scale=1.0”>

<meta http-equiv=“X-UA-Compatible” content=“ie=edge”>

<title>Form</title>

</head>

<body>

<div>

<!--[if lte IE 8]>

<script charset=“utf-8” type=“text/javascript” src=“//js.hsforms.net/forms/v2-legacy.js”></script>

<![endif]-->

<script charset=“utf-8” type=“text/javascript” src=“//js.hsforms.net/forms/v2.js”></script>

<script>

hbspt.forms.create({

portalId: “123”,

formId: “123”

});

</script>

</div>

<!-- Start of HubSpot Embed Code -->

<script type=“text/javascript” id=“hs-script-loader” async defer src=“//js.hs-scripts.com/5599714.js”></script>

<!-- End of HubSpot Embed Code -->

</body>

</html>

Thank you.

Nevermind i figured it out

I’m having the same issue, what was your solution?

Regards,

Stephen

Hi there, did you end up finding the solution to this aswell?

Were you able to find a solution?

Did you find out the answer to this?

Can you post your solution for this?

Add https in front of “js.hsforms.net