Here is a learning support on using hyphens and dashes. If you scroll down about 17 posts below this one, you’ll find another learning support simply on hyphenation. As always, Paul Brians does a nice job of presenting the key issues on these forms of punctuation.
Incidentally, if you like Paul Brians’ work, stay tuned here for more of it; I drafted a little over one hundred worksheets using text from his book Common Errors in English Usage–which Professor Brians, amazingly, has made available in its entirety on the Washington State University website. Just punch that hyperlink–and you’re there!
If you find typos in this document, I would appreciate a notification. And, as always, if you find this material useful in your practice, I would be grateful to hear what you think of it. I seek your peer review.