HTML is used for structuring the content and elements of a web page, CSS is used for styling and formatting the appearance of HTML elements, and JavaScript is used for adding dynamic behavior and interactivity to web pages.