A browser will make a request to your server, either a GET request (to load a page), or a POST request (to post form data to server).
The browser expects an HTML document to be returned from that request, which it will then display.
You can use PHP on the web server to generate the HTML code...