When I was at school I was told that a quote should end with a comma. For example:
"The car is on the road," said Tom.
"No it isn't," replied Dick.
"He's right — it's over there!" said Harry.
However, I've recently been advised that this is not correct, and that the preceding text should read:
"The car is on the road." said Tom.
"No it isn't." replied Dick.
"He's right — it's over there!" said Harry.
I'm specifically interested in British English — can anyone tell me if either/both of these are correct?
EDIT
From the answers below, it seems like this depends on what follows. For example:
"The car is on the road," said Tom
But
Tom said, "The car is on the road."
Is this correct?