html5 - Validation errors (like "Stray start tag html") that I can't seem to shake on header.php -


running validation , getting few errors.

    f<!doctype html>↩     <!--[if ie 8 ]><html class="ie ie8 no-js" lang="en-us" prefix="og: http://ogp.me/ns#"> <![endif]-->↩     <!--[if (gte ie 9)|!(ie)]><!--><html class="no-js" lang="en-us" prefix="og: http://ogp.me/ns#"> <!--<![endif]-->↩     <head>↩ 

i've tried saving header.php (utf-8, no bom), can't seem shake non-space character (the 'f') @ start.

here php code:

<!doctype html> <?php /**  * theme header  *  * outputs <head> , header content (logo, tagline, navigation)  */ ?> <!--[if ie 8 ]><html class="ie ie8 no-js" <?php language_attributes(); ?>> <![endif]--> <!--[if (gte ie 9)|!(ie)]><!--><html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> <head> 

then, have no clue start on "stray html" error tag. check http://wsumc.com/worship

looking @ https://validator.w3.org/nu/?doc=http://wsumc.com/worship/

the “stray start tag html message side effect of f @ beginning.

the way html works is, f naked text—which head element can’t contain—so implies body of document has started , follows part of body. when html parser sees f, parser generates <body> start tag.

but next thing parser sees <!doctype html>—which in body—so parser says, “stray doctype” , moves on. next thing parser finds <html> start tag, in body—so parser says, “stray start tag html.

the parsing html documents section of html spec defines how works (though admittedly not in super-approachable way readers…)


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -