While this is very common, you WILL get laughed if you do this in any sort of formal setting (School assignment, work, etc).
The proper way would be to implement an Interface that serves as a callback for when the gui is done.
Man it's 2008, I'm tryna paint the picture
Comeback Season in the works and now I'm thinkin' bigger
I got 40 in the studio, every night, late night
Gotta watch that shit, don't want to make him sicker
That's my ********
oh Lord
PSD to HTML is bad. The best websites use very few images. They use css to style and js to make it interactive. If you want to design websites, I suggest you look into html, css, javascript, etc.