HTML is the language used to write web pages. It includes tags for structuring documents, such as <HTML> to open and close documents and <HEAD> for the document header. Tags are also used for formatting text elements like headings, paragraphs, lists, and character styles. Additional tags insert images, tables, and hyperlinks to other documents. Attributes specify properties of these elements like colors, sizes, and locations of images or links.