The element that has 6 valence electrons and a valence of 2 is oxygen (O). In the periodic table, oxygen is found in Group 16 and is a non-metal. It has an atomic number of 8 and therefore has 8 electrons. The electron configuration of oxygen is 1s2 2s2 2p4, which shows that it has 6 valence electrons in its outermost shell (2 in the 2s subshell and 4 in the 2p subshell).
Oxygen typically forms two bonds by gaining or sharing two electrons to achieve a stable octet configuration, which is why it has a valence of 2. This behavior is crucial for its role in various chemical reactions, including combustion and respiration.