In really short, a covalent bond occurs when electrons are shared between molecules. This sharing can be strong or weak, depending on how many electrons are shared and what atoms they are shared from and with.
Ionic bonding occurs because of charges. That is, a molecule with a positive charge is attracted to one with a negative charge, almost exactly like the poles of a magnet.
Water (H2O or H-O-H) and carbon dioxide (CO2 or O=C=O) are covalent bonds. In water's case, the oxygen borrows 1 electron from each of the hydrogen atoms and that bonds the hydrogen and oxygen atoms together. In carbon dioxide's case, the carbon atom borrows 2 electrons from each oxygen atom to form the bond. That's why water is written with a single dash (to indicate one electron being shared) and carbon dioxide is written with 2 dashes (to indicate 2 electrons being shared).
Comparatively, look at sodium chloride (table salt) NaCl. This is one sodium atom Na+ with one chlorine atom Cl-. The sodium ion, Na+ is positive because it readily gives up one electron (is is called an electron donor). It gives up that electron because the atom is actually more stable by giving up an electron. Similarly, chlorine is an electron acceptor. Is is more stable when it accepts a free electron. But, because the two atom have lost an electron or gained an electron, respectively, they are no longer neutral. They are charged and opposite charges are attracted to one another.
Ionic bonding can be very strong (i.e. table salt doesn't spontaneously break into sodium and chlorine gas -- both very dangerous chemicals on their own) or weak (the ions usually will separate in a water solution, only to reform when the water is taken away).
Covalent bonding is usually what organic compounds (those with oxygen O, carbon C, hydrogen H and nitrogen N) participate in. Ionic bonding is usually what inorganic compounds participate in. Usually, not always. There are organic ionic bondng, like nitrite and nitrate (NO2- and NO3-) salts, and there are inorganic compounds that can form covalent bonds (sulfer can, for instance). So, it isn't always the case, just usually.
Also, sometimes the distinction between the two isn't so clear cut. Because of the way oxygen shares the electrons from the hydrogen atoms, there is actually a partial charge created. The hydrogen from one water molecule is attracted to the oxygen from another water molecule. This is known as hydrogen bonding, and it one of the main reasons water has such a high boiling and melting point compared to other similar substances. In order to boil water, you have to tear a molecule from all the hydrogen bonding it participates in.
There is obviously a lot more to this than can be written just here. Any good organic chemistry book, or even most good 1st semester university level texts should discuss covalent and ionic bonding in a lot more detail.
Ionic bonding occurs because of charges. That is, a molecule with a positive charge is attracted to one with a negative charge, almost exactly like the poles of a magnet.
Water (H2O or H-O-H) and carbon dioxide (CO2 or O=C=O) are covalent bonds. In water's case, the oxygen borrows 1 electron from each of the hydrogen atoms and that bonds the hydrogen and oxygen atoms together. In carbon dioxide's case, the carbon atom borrows 2 electrons from each oxygen atom to form the bond. That's why water is written with a single dash (to indicate one electron being shared) and carbon dioxide is written with 2 dashes (to indicate 2 electrons being shared).
Comparatively, look at sodium chloride (table salt) NaCl. This is one sodium atom Na+ with one chlorine atom Cl-. The sodium ion, Na+ is positive because it readily gives up one electron (is is called an electron donor). It gives up that electron because the atom is actually more stable by giving up an electron. Similarly, chlorine is an electron acceptor. Is is more stable when it accepts a free electron. But, because the two atom have lost an electron or gained an electron, respectively, they are no longer neutral. They are charged and opposite charges are attracted to one another.
Ionic bonding can be very strong (i.e. table salt doesn't spontaneously break into sodium and chlorine gas -- both very dangerous chemicals on their own) or weak (the ions usually will separate in a water solution, only to reform when the water is taken away).
Covalent bonding is usually what organic compounds (those with oxygen O, carbon C, hydrogen H and nitrogen N) participate in. Ionic bonding is usually what inorganic compounds participate in. Usually, not always. There are organic ionic bondng, like nitrite and nitrate (NO2- and NO3-) salts, and there are inorganic compounds that can form covalent bonds (sulfer can, for instance). So, it isn't always the case, just usually.
Also, sometimes the distinction between the two isn't so clear cut. Because of the way oxygen shares the electrons from the hydrogen atoms, there is actually a partial charge created. The hydrogen from one water molecule is attracted to the oxygen from another water molecule. This is known as hydrogen bonding, and it one of the main reasons water has such a high boiling and melting point compared to other similar substances. In order to boil water, you have to tear a molecule from all the hydrogen bonding it participates in.
There is obviously a lot more to this than can be written just here. Any good organic chemistry book, or even most good 1st semester university level texts should discuss covalent and ionic bonding in a lot more detail.