In American English, commas and periods always go within quote marks; dashes, colons, and semicolons almost always go outside; while question marks and exclamation marks sometimes go inside and sometimes stay outside. You should follow this rule unless doing so would be inconsistent or confusing.