A good place to start a career in HR is by working at a recruitment agency.
Senior HR professionals need to manage both Talent Acquisition and HR, so they tend to come from one of these disciplines.
Talent Acquisition is the one that is harder to manage effectively if you've never worked in it, which is why starting your career in that field is useful.
In-house talent acquisition is an easier version of competitive recruitment at a recruitment agency, that's why starting out at a recruitment agency will be good for you career.
Starting out at a recruitment agency is also good because they often hire people without experience and have very good onboarding programs. At a recruitment agency the usual path is to start off working on the "candidate side" and then, as you gain experience, move up to working on the "client side" too. If you're set on a career in HR, you could settle for one year working candidate side and then move on to find an internal talent acquisition role at another company. A year at a recruitment agency would put you in a good position for that. Then you can work yourself up from talent acquisition into a broader HR career over a few years.
Hope that's helpful.