I heard there is two ways to put the language attribute into the html tag.
The two ways are:
<html <?php language_attributes();?>>
<html lang="<?php bloginfo("language"); ?>">
Is there a specific coding convention everyone uses or is it a case where its up to the programmer. The reason is because I want my wordpress theme to have proper code according to the coding conventions.