Step-by-step explanation:
Comparing:-
Dialect: More directly involved with vocabulary, for example, from where I'm from, "Ya'll" is king. Accent: More with how you speak, compare someone from Arkansas with someone from New York. They'll be hard to understand. Both are regional, and both are completely dependent on where one grew up, or was situated most of their life.
Contrasting:-
A common mistake is to confuse a dialect with an accent, muddling up the difference between words people use and the sounds they make, their pronunciation. If vocabulary and grammar are being considered alongside pronunciation, then ‘dialect’ is a reasonable term to use. But often, when claiming to discuss a dialect, someone will concentrate just on pronunciations. If what is being spoken about are sounds alone—that is, accent—then the area of language study is rather pronunciation, or phonology.
Hope I helped.