Light and fan switches
You can achieve this in several ways.

The most brain bending method :-) is to use two SPDT (2-way / changeover) switches.

This is a standard item, but this is a not too usual means of connection. Note that terminals should be sleeved with appropriate colours as electricians may at first be confused with the arrangement.  

Connect thusly :

When both switches are "up" neither device is powered.  

When SWA is down live is connected to the light AND also to the fan via SWB top contact.

When SWA is up and SWB is down live is connected to the fan via SWB lower.

When both switches are down the light is powered by SWA and the fan is powered by SWB.



______________________________________

If only SPST switches are available then.

Use switches A &amp; B - each SPST, and a SPST relay.

Switch A operates Fan.

Switch B operates Light and Relay. Relay operates fan.