Correct me if I am wrong, but steel is an alloy between iron and carbon. Does the carbon in the steel stops the iron from rusting or corroding? Also what is the difference between mild steel and stainless steel?
Mild steel is an alloy. It is the most common form of steel. Mild steel (a so-called carbon steel) is a general term for a range of low carbon (a maximum of about 0.3%) steels that have good strength and can be bent, worked or can be welded into an endless variety of shapes for uses from vehicles (like cars and ships) to building materials. The carbon does not stop the material rusting or corroding. In addition to iron, carbon, and chromium, modern stainless steel may also contain other elements, such as nickel, niobium, molybdenum, and titanium. Nickel, molybdenum, niobium, and chromium enhance the corrosion resistance of stainless steel. It is the addition of a minimum of 12% chromium to the steel that makes it resist rust, or stain 'less' than other types of steel. The chromium in the steel combines with oxygen in the atmosphere to form a thin, invisible layer of chrome-containing oxide, called the passive film. The sizes of chromium atoms and their oxides are similar, so they pack neatly together on the surface of the metal, forming a stable layer only a few atoms thick. If the metal is cut or scratched and the passive film is disrupted, more oxide will quickly form and recover the exposed surface, protecting it from oxidative corrosion.