errors - <!doctype html> : Failed to load resource

I am using the code below:<!doctype html><html lang="<?php language_attributes(); ?>" dir=&quo

I am using the code below:

<!doctype html>
<html lang="<?php language_attributes(); ?>" dir="ltr">

<head>
    <meta charset="<?php bloginfo('charset') ?>">
    <meta name="description" content="<?php bloginfo('description') ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php wp_head(); ?>
</head>

I have an error in line 1 in firebug sources tab .

Failed to load resource: the server responded with a status of 404 (Not Found)

Now the site is not showing part of the site and footer!!

Thanks for helping.

I am using the code below:

<!doctype html>
<html lang="<?php language_attributes(); ?>" dir="ltr">

<head>
    <meta charset="<?php bloginfo('charset') ?>">
    <meta name="description" content="<?php bloginfo('description') ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php wp_head(); ?>
</head>

I have an error in line 1 in firebug sources tab .

Failed to load resource: the server responded with a status of 404 (Not Found)

Now the site is not showing part of the site and footer!!

Thanks for helping.

Share Improve this question edited Apr 4, 2019 at 22:17 rudtek 6,3935 gold badges30 silver badges52 bronze badges asked Apr 4, 2019 at 9:18 Mostafa NorzadeMostafa Norzade 3732 gold badges7 silver badges17 bronze badges 3
  • 1 Well, the <!doctype html> was likely not the first line being referenced by Firebug. So check the first resource (JS/CSS file, image, etc.) which might not be properly linked to or it may have already been deleted, or simply doesn't exist. – Sally CJ Commented Apr 4, 2019 at 9:26
  • "first resource" - I mean, the corresponding resource. – Sally CJ Commented Apr 4, 2019 at 9:34
  • I did not make a change on the site. Suddenly it became like that . now not showing part of the site and footer !! – Mostafa Norzade Commented Apr 4, 2019 at 10:50
Add a comment  | 

1 Answer 1

Reset to default 3

I see a few errors in your code: Your first line:

<html lang="<?php language_attributes(); ?>" dir="ltr">

should actually be:

<html <?php language_attributes();?> dir="ltr">

(notice that you dont need to add lang=. The function does that by itself. That will likely fix the problem)

You didn't add the ; to 2 of your lines in the head:(shouldn't be a problem, but it's good to be consistent)

<meta charset="<?php bloginfo('charset') ?>">
<meta name="description" content="<?php bloginfo('description') ?>">

they should be

<meta charset="<?php bloginfo('charset'); ?>">
<meta name="description" content="<?php bloginfo('description'); ?>">

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745626958a4636866.html

相关推荐

  • errors - &lt;!doctype html&gt; : Failed to load resource

    I am using the code below:<!doctype html><html lang="<?php language_attributes(); ?>" dir=&quo

    5小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信