A fragment is a piece of a sentence that cannot stand on its own but incorrectly ends in a period.
For example, “Because of the snowstorm, we stayed home from school” is a complete sentence. “Because of the snowstorm. We stayed home from school” is not grammatical because “because of the snowstorm” can’t stand as a complete sentence.