I was just wondering if it is possible to format HTML using Javascript. Thanks a lot!

I am asking this as it is for an answer to a question in a practice paper for an exam. The question shows a fairly basic webpage and the question asks, "Which aspect of HTML allows for the formatting of the site". So I am wondering if javascript could be a valid answer