Hydrogen is the only electro-positive non metal and it has valency of 1.formula of hydrogen when reacts with oxygen is water this is the one of the main reason for placing the hydrogen in group i.Group 1 because it has only one 1 shell,Period 1 because it has one electron on its last shell.