What is the difference between a spanish and sweet onion?

Spanish onions, a type of yellow onion, have more of a pungent flavor and are not very sweet. Sweet onions (like Vidalia, Maui, Texas 1015, and others) literally have more sugar content so they aren't as pungent and taste sweeter.