If $D$ is a simply connected set in $R^2$ or $R^3$, then closed $1$-forms on D are exact. This fact is suitable for the elementary vector calculus course. I have been unable to find similarly suitable sufficient conditions on a domain $D$ in $R^n$ that closed $1$-forms are exact. Or that closed $2$-forms are exact.
Closed forms on a contractible set are exact. However, "contractible" is not a suitable condition, as the simply connected set $R^3 - \{0\}$ is not contractible.