You must be outside the UK, the Channel Islands or the Isle of Man to apply for your visa.
You’ll need to:
register for an account
fill in the application form in English
pay for the visa fee online (in most cases)
print out your form
book and attend an appointment at a visa application centre