This is a style choice. org/wiki/Quotation_marks_in_English#Order_of_punctuation
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
healerSo one is British practice and the other is American style to which my examples belong."British" and "American" style are the traditional labels, but in practice you may find the "American" style used in Britain, and possibly vice versa too.
healerI suppose you mean we can sort of do them *****-nilly. It doesn't matter whether we put the punctuation marks before or after the closing quotes and it applies to all punctuation marks.No, that's not true. Off the top of my head I would say it is only commas and full stops that can, in some styles, go somewhere different from their logical position.
healerWhat about the punctuation marks?Sorry, I don't understand. What about them? Punctuation marks are what we have been discussing. What new question are you asking?
healerDo we use question marks like the commas and periods?No, as I said, as far as I can think, question marks always go in their logical position. In other words, if they are logically a part of the quoted material then they go inside the quotes, whereas if they are logically part of the containing sentence then they go outside. One awkward case is when bot