To apply for a student visa, you need to have an acceptance letter from a Danish university. Then, submit your visa application at the nearest Danish embassy or consulate. Make sure to provide all necessary documents, including proof of acceptance, financial means, and health insurance coverage.