HTML is a markup language used to define the structure and layout of web pages. Key HTML elements include headings, paragraphs, links, and images. HTML documents are made up of nested elements that each have an opening and closing tag. Attributes provide additional information about elements and come in name/value pairs. Common attributes specify hyperlinks, images, styles, and more. Well-structured HTML is important for both appearance and search engine optimization.