PHP Form in HTML

That work in php ?

why do you need php now?

of course it can also work in PHP (it’s html inside php)

javascript and html are executed in the user’s browser

But please use Google in the future, because from the original question you asked a bunch of sub-questions, which no longer has anything to do with the topic or hosting.
Now you ask questions how do you create a website?