How i can add the "lang" attribute to the rendered html tag?

My question is that, how i can add the lang attribute to the html tag to configure the language of my site or isn't necessary? Thanks...