Should I use language_attributes() or bloginfo(“language”) in html tag

Use language_attributes(), it handles rtl and html or xhtml doctypes, and has a filter that users may want to hook in a child theme.

You can see how they differ in source:

  1. language_attributes()
  2. get_bloginfo()