How do the European Parliament elections work?

How do the European Parliament elections work?