why we use slug code example Example: what is a slug A slug uses the title of an article to generate a URL.