For main-group elements, valence electrons can be determined from their position in the Periodic Table i.e., their group number and/or the electronic configuration of elements.