The local folding pattern of RNA or protein chains, determined by hydrogen bonding between nearby atoms.