how we prepare 0.5 mol of solution of hcl in 70ml in water

How many mols do you need? That's M x L = ?

Then mols = g/molar mass. You know mols and molar mass, solve for grams needed.