The web runs on a division of labour
Three technologies sit underneath every web page and each has one job. One describes the structure and meaning of the content, one describes how it should look, and one makes it do things. Blurring them together is the classic beginner mistake, and knowing which is responsible for what is the single most useful distinction in web development.
Several questions test exactly that separation, including which language is responsible for presentation rather than structure.