Separating Adjectives from Each Other
The other way that you may be familiar with using commas is to separate the adjectives that describe a noun. However, you may have also noticed that it's not always consistent. For instance, which of the following is correct? Tyrone had a strong, legendary appetite or Tyrone had a strong legendary appetite?
The answer is the first option. Remember that if you can put 'and' between the adjectives that describe the noun and they still make sense, then there should be a comma in between them. Otherwise, leave it out.
Here's a counter-example: Matilda loves organic chicken eggs. In this case, there's no comma between the adjectives because they both have equal status in describing the noun 'eggs.' They're not organic AND chicken AND eggs but one complete thought: organic chicken eggs. Hence, no comma is necessary.
After an Introduction
Another time you'll use commas is when introducing any word or phrase that comes before the main clause in the sentence (that's the part of the sentence with at least one subject and one verb that's the most essential -- for more on this see the lesson on independent clauses).
Yes, I will have that bacon sandwich. However, I can't eat it in front of that pig. It's like he knows! In this case, both 'yes' and 'however' are introductory words, so they need to have a comma after them. If the introductory word (not so introductory anymore, but stick with me) is at the very end of the sentence, then it has to have a comma preceding it. As in, I can't eat it in front of that pig, however.
The same goes for an introductory phrase, which sometimes can be quite long. For instance: Because the pig was watching her, Janet decided to save the sandwich for tomorrow. The main clause is Janet decided to save the sandwich for tomorrow. The explanation -- that it's because the pig is watching her, is the introductory phrase. Remove the comma and the sentence runs together: Because the pig was watching her Janet... and so on. Note that Because the pig was watching her can't stand on its own as a sentence -- it's not an independent clause. This is true of all introductory phrases. They're all dependent clauses.
Inside Quotation Marks
This one should be familiar to you, but many students still get this wrong. I'll keep it simple: In American English, commas always go inside quotation marks. That's not to say every time you see quotation marks there should be a comma, but if one is required at the end of a clause or phrase, and you're unsure whether to put the comma inside or outside the quotes -- it's inside.
In other words, it will always be 'Take me to your leader,' the square-headed alien said, and never 'Take me to your leader', the square-headed alien said.
In your reading, you may have seen this comma rule occasionally appear differently because in British English, the punctuation goes outside of quotation marks - the exact opposite of American English. I can't explain to you exactly why, but suffice it to say, our forefathers fought for your right to put commas INSIDE quotation marks and let's leave it at that, okay? AMERICA!