
That is I can't select what to learn among HTML and Java.

I know some basic of HTML and also in Java.
I want to learn both. I need to learn HTML --> XHTML --> CSS. But I also want to learn Java too. I was learning Java till the end of August. But then I got some personal problems then they interrupted my learning.
I felt essential of learning HTML because I do freelancing and a good buyer I know is teaching me to design Magento themes and also paying me giving works that I can do. And he is hoping to get me as a designer after teaching me them. And of course after I learning them well.
So for them I need to have a good knowledge in HTML and CSS.
But I need to learn Java too. I like it too. As I know Java is Harder than HTML and CSS. And also I know HTML and CSS are easy to learn.
You guys always say "Learn one thing at a time". I was following that but now I need to learn them both.
1. Is it OK to learn HTML and Java simultaneously ? (I am hoping to learn HTML then XHTML then CSS) Because these are different(I mean C++ and Java have similarities But Java and HTML are completely different by all means ) Because I need to learn these quickly.
2. How long will it take to get a good knowledge in HTML and CSS ?
3. How long will it take to get a good knowledge of Java ?
If you good people can give me an answer today then I can start learning from tomorrow morning with a fresh mind.
Thanks