learning to enjoy music and literature is valuable to the person themself. learning html or manual labor can be valuable to the person themself, but more often it's valuable to other people, because it enables the learner to serve them. that is, most html is written in the service of other people rather than for personal enjoyment or as a form of personal expression, and in the case of manual labor i think this is even more true
but why is it good to be valuable to other people? sometimes we justify this in spiritual or altruistic terms, but manual labor and html are, i think, usually done for paying clients. that is, having these skills that are valuable to other people is good not as an end in itself but as a means to the end of getting paid
but why is it good to get paid? because the person who is paid can stay alive. but why is that valuable? different people have different perspectives on this, but a lot of them come down to survival as a means to possible happiness. among other things, this possible happiness often consists of enjoying music and literature
so i think that they're both valuable, in incommensurable ways. enjoying music and literature is the ultimate end, or part of it, and learning html and how the world works is useful as a potential means to that end
i also think, though, that work itself is enjoyable and produces happiness, and making other people happy makes us happy
learning how the world works is sort of intermediate between these two. lawyers, politicians, doctors, engineers, managers, investors, et al., use their knowledge of how the world works to serve others, and many of us enjoy knowledge for its own sake, but the reason why pastry chefs and assembly-line workers need to know how the world works is neither to enjoy the knowledge nor to use it to serve others. it's so they can get paid. so it's sort of the link between serving others and using the resulting value for your own purposes