Maximum current sourced/sunk on any IO pin is 25mA. Remember that output voltage decreases with increasing current. So, when drawing 25mA current, voltage at pin may be significantly lower than 5V.
Maximum current sourced/sunk by PORTA/PORTB is 200mA.
You can find this information in the datasheet under "ELECTRICAL SPECIFICATIONS".