the period should stay within the quotation marks. This pertains to dialogue without parenthetical citation at the end of the sentence. With a question mark, the question mark should stay within the ...
You should use a capital letter at the start of each piece of speech. Punctuation (question marks, full stops and exclamation marks) go inside the inverted commas. If the person who is speaking is ...