comma with introductory elements
The comma after an opening phrase or an opening dependent clause.
An introductory dependent clause takes a comma, even when it is short: If it rains, cancel the picnic. An introductory phrase takes a comma when it is long: After the last vote of the night, they locked the doors. A short prepositional phrase may take the comma or skip it: In June the board met. In June, the board met.
Examples
UseIf it rains, cancel the picnic.
UseIn June the board met.
UseIn June, the board met.
AvoidIf it rains cancel the picnic.