Alkalis are soluble bases, so they accept hydrogen ions (following the Brønsted-Lowry definition of a base) and dissolve in water.
Alkali refers to the ionic salt or basic of alkali elements and metals. It can also be defined as dissolved base in water with a pH higher than 7.0.
Alkali that causes corrosion is called a base. These are typically water soluble and generate solutions that can be very corrosive, such as caustic soda. These solutions turn litmus paper blue. One common example is sodium hydroxide.