HTML is a markup language used to define the structure and layout of web pages. It uses tags to mark up elements like headings, paragraphs, lists, and other semantic elements. Originally developed to share scientific information between researchers, HTML is now widely used to format web pages using tags like <html>, <head>, <body>, <h1>, and <p>. Elements can be nested within each other and attributes provide additional information about elements.