They both are told from person to person and they give a teaching or warning
Explanation:
Even when urban legends and folktales have some differences in the purpose that they have like the fact that folktales are made with the purpose of unifying a group into the belief of something, they both share the purpose of spreading a common knowledge among people as they tell the story from person to person.