How do they make glass?

Like do they melt the sand and then pour it into a mold or what? how do they make like just glass panes?
I was just wondering