Is it correct to mix PHP code with HTML? [duplicate]

2

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.

    
asked by anonymous 28.02.2018 / 19:04

0 answers