Re: Behavior with html and lang

 <!DOCTYPE html> is not the html tag its the DOCTYPE declaration
<html> is the HTML tag
so you need:

<!DOCTYPE html>
<html lang="en">

and all will be well

--

Regards

SteveF
Current Standards Work @W3C
<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>


On Fri, 7 Sep 2018 at 11:13, Michael Warenycia <mwarenycia@digitalpath.net>
wrote:

> So, my initial HTML tag was:
>
> <!DOCTYPE html>
>
> The site issued a warning saying that I should declare the language in
> the html tag, so then I submitted it with:
>
> <!DOCTYPE html lang="en">
>
> That threw a bogus doctype error and a quirky doctype error. So then I
> submitted:
>
> <html lang="en">
>
> and it threw back a warning saying it expected !DOCTYPE to be in there.
> I can't do anything to make it happy :(
>
>
>
>

Received on Friday, 7 September 2018 10:21:00 UTC