What is the difference between a dialect and an accent?

Most people would commonly refer to an accent as a distinctly unique annunciation of consonant and vowels commonly heard in a geographic proximity or spoken by a distinct community coming from a geographic proximity. Dialect, on the other hand, has attributions beyond annunciation of sounds, and includes the use of slang or local terms, mixed etymology and an element of shared ideas or principles about how to communicate. Another category not considered here is a creole, which is a blending of two or more languages.