Question: do all planets in the solar system rotate in the same direction

Answer: No, All eight planets in the Solar System orbit the Sun in the direction that the Sun is rotating, which is counterclockwise when viewed from above the Sun's north pole. Six of the planets also rotate about their axis in this same direction. The exceptions--the planets with retrograde rotation--are Venus and Uranus. Venus's axial tilt is 177 degrees, which means it is spinning almost exactly in the opposite direction to its orbit. Uranus has an axial tilt of 97.77 degrees, so its axis of rotation is approximately parallel with the plane of the Solar System. The reason for Uranus's unusual axial tilt is not known with certainty, but the usual speculation is that during the formation of the Solar System, an Earth-sized protoplanet collided with Uranus, causing the skewed orientation.