Because the H-1B visa is an employment-based visa and you will need your employer to file certain forms for you, you will need a job offer before you are eligible to apply for the H-1B visa.