Quote marks, or quotation marks, are typically used to indicate what a person has said. Most people understand that part. It’s the punctuation used with quote marks that can be confusing.
As a rule of thumb, quote everything, including the punctuation. In other words, put punctuation inside the quote marks. A few examples: