A markup language uses tags to define elements within a document. Markup languages include HTML, SGML, and XML. HTML is the standard markup language for web pages and uses tags like headings and paragraphs. SGML allows complex formatting and is flexible but requires expensive tools. XML separates data from presentation and is used widely to store and transport data between systems.