The periodic table
The periodic table displays all known chemical elements and provides each element with a group and period number. The period number indicates the number of electron shells, while the group number shows the number of outer electrons (valency). An element's location in the table block defines its valence electrons' orbitals. By using the period and group number as coordinates, we can locate any element on the table.
The p-block's diagonal line, starting at boron, contains metalloids that exhibit both metal and nonmetal characteristics. Elements found to the left of this line are metals and form cations, whereas those on the right are nonmetals and form anions. Combining the group number with the octet rule helps predict an element's number of bonds.
Let's apply this knowledge to oxygen. Oxygen is in group 16, has six valence electrons, and is located to the right of the metal-nonmetal line, making it a nonmetal and forming an anion. According to the octet rule, oxygen forms two covalent bonds or an ion with a 2 minus charge.
Note that some transition metals, such as copper and iron, can create several cations with varying charges, also known as a variable charge.
Figure 1: Metals, metalloids, and nonmetals: The diagonal line cutting through the metalloids splits the table into metals, on the left, and nonmetals, on the right. Each block also organizes the elements based on their electron configuration.