I've just started learning about Drupal 7's theme system. I need to know how the template engine handles php, html, and css inside its template files and how it interacts with Drupal core to make its final output onto the page.
Basically, when we load a Drupal page in browser, what does the template engine do?