HTML and XML are both subsets of SGML. However, HTML contains predefined tags that focus on how to display data, whereas XML allows you to create tags that describe data.