If you will be studying a full-degree, you must apply for a Tier 4 Student Visa; if your degree program is 6 months or less, you need a Student Visitor Visa. You should apply online, visit the visa application center in your home country, and apply at least three months before your course in the UK begins.