I'm a 17-year-old student currently learning Java in school. It's the required language this term, even though I'd eventually like to get into web development. Some people have suggested learning HTML and CSS, while others have mentioned C++. Should I focus on getting comfortable with Java first, or study web technologies alongside it?
4 Answers
There’s no need to abandon Java. Beginner Java courses teach the important parts of programming—variables, conditions, loops, functions, and breaking problems into smaller steps. Those concepts transfer to JavaScript, Python, C#, and other languages. Once you understand programming itself, switching languages becomes much easier.
If web development is your goal, start with HTML for page structure, CSS for styling, and JavaScript or TypeScript for interactivity. C++ generally isn’t part of the usual web development path, so you may have meant CSS.
HTML and C++ are very unrelated. HTML and CSS are used for the frontend, while JavaScript usually adds behavior in the browser. C++ is mainly used in other areas, with only occasional specialized uses in web technology.
It depends on what you want to do. For programming practice, continue learning Java. For building and designing websites, add HTML and CSS when you have time, then learn JavaScript. You can study them alongside Java as separate skills, and Java may also be useful later for backend development.

Yeah, I meant CSS—my mistake.