How does a non metal behave chemically? Gimme an example

A non-metal is an element that typically lacks metallic properties, such as being ductile, malleable, and typically having poor thermal and electrical conductivity. Non-metals tend to be brittle, have lower melting and boiling points, and are generally poor conductors of heat and electricity.

Chemically, non-metals often gain electrons to form negative ions, which results in the formation of compounds with metals or other non-metals. They also tend to form covalent bonds by sharing electrons with other non-metals.

An example of a non-metal behaving chemically is oxygen (O). Oxygen is a highly reactive non-metal that readily combines with other elements to form various compounds. For instance, oxygen reacts with iron (Fe) to form iron oxide (Fe2O3), commonly known as rust. This chemical reaction occurs when oxygen molecules in the air react with iron atoms, resulting in the formation of a new compound.