What is the difference between HTML elements and tags?

An HTML tag is the text inside angle brackets (e.g., <h1>), while an HTML element consists of the opening tag, content, and closing tag (e.g., <h1>Hello</h1>).