The tendency to gain electrons increases on moving across a period of due to an increase in the nucler charge and decrease in the atomic size. Hence, the non metallic character increases across a period. As we move down the group, the non metallic character decreases due to increase in the atomic size.