Why do webpages use HTML?
The short answer
HTML marks roles such as headings, paragraphs, links, and images so browsers can understand page structure.
How it works
HTML describes meaning and structure, not only appearance. CSS can control presentation and JavaScript behavior, allowing separate roles.
A familiar example
Opening an HTML file alone may not reproduce the intended page if its images or CSS are missing.