# \<html lang\> values, by complete lang value (full language tag)

**URL:** https://discuss.httparchive.org/t/html-lang-values-by-complete-lang-value-full-language-tag/798
**Category:** Analysis
**Created:** [July 26, 2016, 12:46am UTC](https://discuss.httparchive.org/t/html-lang-values-by-complete-lang-value-full-language-tag/798 "2016-07-26T00:46:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sideshowbarker](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/sideshowbarker/32/671_2.png) [@sideshowbarker](https://discuss.httparchive.org/u/sideshowbarker)
#### Post date: [July 26, 2016, 12:46am UTC](https://discuss.httparchive.org/t/html-lang-values-by-complete-lang-value-full-language-tag/798/1 "2016-07-26T00:46:14Z")

</div>

```sql
SELECT COUNT(*) AS num, lang FROM (
  SELECT page, url, REGEXP_EXTRACT(LOWER(body), r'<html\s(?:[^>]+\s)?lang\s*=\s*["\']?([a-z0-9-]+)') AS lang
  FROM [httparchive:har.2016_05_01_chrome_requests_bodies]
  WHERE LOWER(body) CONTAINS ' lang='
) WHERE lang != "null"
GROUP BY lang
ORDER BY num DESC

```

643 unique `lang` values found, among 681,664 documents having `<html lang>` with a non-empty value, out of a total of 17,551,160 documents (meaning, only 3.88% of documents had `<html lang>` at all, which is consistent with the data at [https://www.chromestatus.com/metrics/feature/timeline/popularity/588](https://www.chromestatus.com/metrics/feature/timeline/popularity/588)).

> <https://gist.github.com/sideshowbarker/350fbc3b91a170d7c19f496c256eccc0>

> **[values on the Web 2016-07-26](https://docs.google.com/spreadsheets/d/1_J89xK8W4J4VSvPPLQ9B5nOaYGq80vhB2gfE3u9FhAY/edit?usp=sharing)**
>
> results-20160726-080243. csv
> 
> 1, 28, 0. 000001466998404
> 1, 1033, 0. 000001466998404
> 3,-, 0. 000004400995212
> 2,--, 0. 000002933996808
> 1,- mk-mk, 0. 000001466998404
> 1,- pl-pl, 0. 000001466998404
> 1, 2a172a17, 0. 000001466998404
> 1, 5fdf, 0....
