1. "I like jogging," he said.

2. "I like jogging," John said.

3. "I like jogging," said he.

4. "I like jogging," said John.

(Which one is correct? Are all correct?) Do you have a rule about that?)

5. "I like jogging.", he said.
6. "Do you like jogging?", he said.
7. "Do you like jogging?" he said.
(What about the three sentences? Whic one is correct?)

All are correct (1-4), but 3 is rarely used.

Among 5-7, only 7 is correct.
5 would be correct if you replace the period after "jogging" with a comma and delete the other comma; 6 would be correct if you remove the comma.

Here's a good website on punctuating dialogue: (Broken Link Removed)

All of the sentences you provided are grammatically correct, but they have different structures and emphasis. The use of quotation marks and the placement of the attribution phrase (e.g., "he said," "John said") can vary depending on the style and context.

Let's break down each sentence:

1. "I like jogging," he said.
This sentence is in the form of direct speech with the attribution phrase placed after the quotation. It is a common and straightforward way to attribute the statement to someone.

2. "I like jogging," John said.
This sentence is similar to the first one and adds the speaker's name, "John," to provide more specific attribution.

3. "I like jogging," said he.
This sentence uses an alternative syntax where the attribution phrase ("said he") is placed before the quotation. This is a form of inverted word order, which can sound a bit more formal or poetic, but it is less commonly used in contemporary English.

4. "I like jogging," said John.
Similar to the previous sentence, this one uses an alternative word order with the attribution phrase placed before the quotation. In this case, the speaker's name, "John," is preferred at the end of the sentence.

Regarding the additional sentences:

5. "I like jogging.", he said.
This sentence is similar to sentence 1, but it ends with a period inside the quotation marks because the quoted statement is treated as a complete sentence. The attribution phrase ("he said") follows, indicating who spoke the words.

6. "Do you like jogging?", he said.
This sentence is an example of a question in direct speech. The question mark inside the quotation marks represents the question being asked. The attribution phrase follows, indicating the speaker.

7. "Do you like jogging?" he said.
This sentence is similar to sentence 6, but the question mark is placed outside the quotation marks because the question is attributed to the speaker afterwards.

In summary, all the sentences are grammatically correct, but the preferred structure and placement of attribution may vary depending on the context and specific style guide being followed.