OpenGL is always a great place to start I find, it's cross platform and is just about on par with Directx.
Honestly, if you're focusing on porting you code over to other platforms as a beginner, you're doing it wrong. I would be very surprised if anyone has made money from the first few applications they have written.
Porting should be done after you have a working application, not when you're struggling to push a mere triangle to the framebuffer. I'm not saying that you litter your source code with non-portable function calls and hacks, but you should not be going to great lengths to make your code run on 6 platforms. Stick with one, for example Windows, and learn the content. D3D has a lot better tools and documentation (and overall API structure) IMO. Remember that you can always learn the other API later on (I personally believe you should), so your initial choice does not matter as much as you think.
OpenGL is a fine choice, but be sure to include the pros of D3D as well so a beginner can make a intelligent decision.
With OpenGL you'll be able to effectively learn all the things that you need to learn such as how to create orthographic matrices and rotation/translation matrices which will be vital when starting on 3D Projects.
Using OpenGL (or any graphics API, really) will not teach you math. Sure, the API utilizes mathematics, but it will not teach you anything. Use an external source to learn the math. I recommend picking up a decent math book (the internet works fine as well). That will teach you 3D math.
The other major added bonus is that you'll be able to learn OpenGL with just about any language that you want as most of these major languages have frameworks that provide the bindings! I'm currently developing a series on Java and LWJGL 3 which is the framework that provides OpenGL bindings for Java so you should check it out: OpenGL Tutorials
You can also learn D3D more or less any language you want. Rastertek has lovely D3D tutorials, so be sure to check them out. It also has less complete modern OpenGL tutorials, but I can't comment on their quality.
Regardless of the language you choose, be sure to make sure they are modern versions of the API. That means D3D10+ (you should actually be using D3D11+), and OpenGL 3.3+.