The document's title as the HTML standard defines document.title: the
text of the first <title> element in the HTML namespace, with leading
and trailing whitespace removed and runs of whitespace collapsed to one
space. An SVG <title> does not count.
See also
Other metadata:
html_json_ld(),
html_meta(),
html_microdata()
Examples
html_title(html_parse("<title> Annual\n report </title><p>Body"))
#> [1] "Annual report"
html_title(html_parse("<p>No title"))
#> [1] NA