SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. HTML is based on SGML.