Can you get a job with only online courses?
Yes, especially in fields where skill outweighs diplomas: programming, data, design, and digital marketing. The course alone is not enough; the portfolio of projects you build with it is what convinces an employer.
The job market has genuinely shifted here: in tech and digital roles, employers increasingly look at what you can demonstrate rather than where you learned it. Professional certificates from Google and IBM (via Coursera) are explicitly designed as routes into jobs without a related degree, and the career paths on Codecademy and DataCamp build toward concrete job profiles. Udacity goes furthest with real projects reviewed by humans.
The nuance: the certificate opens the door at best; the portfolio gets you inside. Employers want to see work: a working app, an analysis on real data, a design portfolio. So choose courses where you build things rather than just watch, and publish what you make (GitHub for code, a simple site for the rest).
Be honest about the limits too: professions with legal requirements (healthcare, law, teaching) require accredited degrees. But for the digital professions, six months of serious online learning plus a solid portfolio is a realistic springboard.