Valence electrons are the electrons in the outer shell, and they are the electrons involved in bonding. When non-metal atoms bond covalently, the key idea is a shared pair of electrons.
Step-by-step lessons on AQA AS Level Chemistry Nature of covalent and dative covalent bonds. Each one builds up to exam-style questions.