I'm restarting my studies in IT and I have this doubt. In the course I'm doing the examples show the php code mixed and inserted into the html code. Is this really what works in practice? I have a flea behind my ear telling me this is not good practice. If so, how do the back and front developers split the code?
My question is not knowing what Front and Back is, is to understand why the php code is together with the html. They do that even in the day-to-day business.