The <html> tag's 'lang' attribute declares the language of the document, aiding in accessibility and proper rendering for different languages.