Someone on quora asked:
The difference between front-end and back-end is on which side executes the relevant code. HTML, JS and CSS are all interpreted, rendered, and in the case of JS, executed by the client browser. These parts are the front-end. The code for those parts is basically meaningless to the server. The server program looks at these parts and only sees simple text and just sends it through to the browser (or whatever client program made the request)
For example in a *.php file, anything outside the <?php ?> brackets is not interpreted by the PHP runtime, they are just returned to the browser as-is. The server does not “load the HTML for the user”, it simply returns the HTML code to the browser and the browser loads that HTML and displays the rendered HTML.
- You can buy me a coffee!
- You can write a reply on your own site and submit the URL as a webmention via the form below.
- Or you can just contact me!