Move <html> attribute logic to functions.php.