nail (something) onto (something else)
To affix something onto some surface by driving a nail or some similar fastener through both. I tried nailing the picture frame onto the wall, but it was too heavy for the flimsy drywall to hold. I'm going to nail a sign onto the tree out front so people know that our dog will bite them if they try to trespass on our property.
nail something onto something
and nail something to something; nail something onto attach something onto something by nailing. Suzy nailed the hose bracket onto the side of the house. She nailed on the bracket. Laura nailed the bracket to the wall.