Why is glass transparent?

Also, why can’t you get a suntan through a window?

Advertisements
Why is glass transparent?