I'm working on a landing page that will function as a Subscriber Preferences form for email marketing. It needs to query a particular Data Extension using a given email and populate fields automatically if that email exists, and obviously input the form contents to said Data Extension when submitted.
The form is built in HTML and CSS as the formatting limitations in the content builder were too restrictive, and I have some Javascript to pull the email address from a URL query so I don't need to handle live input there. I don't have much experience with SFMC but as far as I've been able to determine I should be able to embed some Ampscript within the page to handle pre-populating the form, but I'll want to handle form submission using JS and send the data off to a separate page (presumably a code resource?) that will handle updating the DE.
What I'm unsure of is how the syntax is done in a case where I'm writing the HTML directly? Does it need to be in a Script tag of some description?