Stray start tag html как исправить

Guide describing the HTML issue detected by the W3C Validator: Stray start tag “html”.

A <head> start tag has been found in an unexpected place in the document structure. Check that the <head> section appears before the <body> section, and that is not duplicated.

The <head> section of an HTML document is the container of metadata about the document, and must appear before the <body> section. A common cause of this issue is duplicated <head> sections.

Here is an example of a minimal HTML document structure:

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <p></p>
  </body>
</html>

A <script> start tag has been found in an unexpected place in the document structure. Check that the <script> section appears within the <head> or <body> sections.

Here’s an example of a script inserted in the head of the document:

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
    <script>
      console.log("Hello from the head");
    </script>
  </head>
  <body>
    <p></p>
  </body>
</html>

A <style> start tag has been found in an unexpected place in the document structure. Check that the <style> section appears within the <head> section.

Although in general it’s better to put your styles in external stylesheets and apply them using <link> elements, CSS styles can also be included inside a document using the <style> tag. In this case, it should be placed within the <head> section, like in this example:

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
    <style>
      p {
        color: #26b72b;
      }
    </style>
  </head>
  <body>
    <p>This text will be green.</p>
  </body>
</html>

Instead of using the isolang attribute to define the language of the document, you can use lang with an ISO 639-1 two character code.

For example, for Portuguese:

<html lang="pt">

25,000 HTML checks per month. Fully automated.

Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.

And end tag has been found that does not match the current open element. Check the context to fix the start and end tags.

An <a> tag can’t include other <a> tags inside. Most probable cause is an unclosed <a> tag, like in this example:

<a href="one.html">Page 1
<a href="two.html">Page 2</a>

6,250 HTML checks per week. Fully automated.

Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.

HTML documents are expected to start with a first line containing the Document Type Declaration, that defines the HTML version used. Since HTML5, it’s just <!DOCTYPE html>, which must appear before the start <html> tag.

Here’s an example of a minimal HTML5 document:

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <p></p>
  </body>
</html>

All HTML documents must start with a <!DOCTYPE> (Document Type Declaration), that informs browsers about the type and version of HTML used to build the document. In HTML5, this is simply <!DOCTYPE html> and must appear at the start of the document.

Here is an example of a minimal HTML document, including the Document Type Declaration at its start:

<!DOCTYPE html>
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <p></p>
  </body>
</html>

An end tag for X has been found that does not correspond to a previous open tag. This usually happens when you close the same tag twice, for example:

<ul>
  <li>item</li>
</ul>
</ul>

In HTML5, there’s no need to specify the version attribute — it is now obsolete. Here’s an example minimal HTML document to start with:

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Test</title>
  </head>
  <body>
    <p></p>
  </body>
</html>

Still checking your large sites one page at a time?

Save time using our automated web checker. Let our crawler check your web pages on the W3C Validator.

0 / 0 / 0

Регистрация: 20.05.2013

Сообщений: 44

1

02.08.2017, 09:11. Показов 11724. Ответов 6


Всем привет, все перерыл в интернете, но не нашел как устранить проблему в валидаторе? может кто подскажет что означает эта проблема, и как ее вообще решить?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



112 / 108 / 42

Регистрация: 22.01.2017

Сообщений: 452

02.08.2017, 09:50

2

пропущен стартовый тег tr



0



0 / 0 / 0

Регистрация: 20.05.2013

Сообщений: 44

02.08.2017, 09:55

 [ТС]

3

в исходном коде ничего не пропущено и все сделано по html стандарту, вот что интересно есть table в него входит tr открывающий и соответственно после <td></td> закрывающий тег </tr>



0



112 / 108 / 42

Регистрация: 22.01.2017

Сообщений: 452

02.08.2017, 10:29

4

dimkaja357, покажите пациента.



0



dimkaja357

0 / 0 / 0

Регистрация: 20.05.2013

Сообщений: 44

02.08.2017, 10:32

 [ТС]

5

PHP/HTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<tbody>
                                                        <?php $curNameTable = ''; ?>
                                                        <?php $curWireСross = 0.0; ?>
                                                        <?php foreach($subTableNames as $subTableName) { ?>
                                                        
                                                            <?php foreach($products as $product) { ?>
                                                                <?php if($product['subTableName'] == $subTableName['subTableName']) { ?>
 
                                                                    <?php if($curNameTable != $subTableName['subTableName']) { ?> 
                                                                        <tr>
                                                                            <td colspan="100%">
 
                                                                            </td>  
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="100%" style="text-align:left;">
                                                                                <strong><?php echo $subTableName['subTableName']; ?></strong>
                                                                            </td>  
                                                                        </tr>
                                                                    <?php } else {?> 
                                                                    <?php if($curWireСross != $product['WireСross']) { ?> 
                                                                        <tr>
                                                                            <td colspan="100%">
 
                                                                            </td>  
                                                                        </tr>
                                                                        <?php } ?>
                                                                    <?php } ?>
 
                                                                    <?php $curWireСross = $product['WireСross']; ?>
                                                                    <?php  $curNameTable =  $subTableName['subTableName'];  ?> 
 
                                                                <tr>
                                                                    <td><a target="_blank" data-uk-tooltip="{pos:'top-left'}" title="<?php echo $product['name']; ?>" href="<?php echo $product['href']; ?>"><?php echo $product['model'] ?></a></td>
                                                                    <td><?php echo $product['Dimension'] ?></td>
                                                                    <td><?php echo $product['OuterO'] ?></td>
                                                                    <td><?php echo $product['CuIndex'] ?></td>
                                                                    <td><?php echo $product['weight'] ?></td>
                                                                </tr>
                                                                <?php } ?>
                                                            <?php } ?>
                                                            
                                                        <?php } ?>
                                                        
                                                    </tbody>

P.S после и перед tbody — теги table



0



Модератор

Эксперт JSЭксперт HTML/CSS

3824 / 2674 / 1521

Регистрация: 12.07.2015

Сообщений: 6,674

Записей в блоге: 4

02.08.2017, 10:55

6

Вы валидатору тоже php-код скармливаете? Выкладывайте HTML.



0



dimkaja357

0 / 0 / 0

Регистрация: 20.05.2013

Сообщений: 44

02.08.2017, 14:19

 [ТС]

7

HTML5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<div class="table_index_box">
                                                <table class="table_box table uk-table table-bordered uk-width-1-1">
                                                    <colgroup>
                                                        <col span="100%">    
                                                    </colgroup>
                                                    <thead>
                                                        <tr>
                                                            
                                                                <th>
                                                                    Номер артикула
                                                                </th>
                                                                <th>
                                                                    Размеры
                                                                </th>
                                                                <th>
                                                                    Наружный диаметр
                                                                </th>
                                                                <th>
                                                                    Вес меди
                                                                </th>
                                                                <th>
                                                                    Вес кабеля
                                                                </th>
                                                            
                                                        </tr> 
                                                    </thead>
                                                    <tbody>
                                                        
                                                                                                                                                                                                                                
                                                                                                                            
                                                                     
                                                                     
                                                                        <tr>
                                                                            <td colspan="100%">
 
                                                                            </td>  
                                                                        </tr>
                                                                                                                                            
                                                                                                                                         
 
                                                                <tr>
                                                                    <td><a target="_blank" data-uk-tooltip="{pos:'top-left'}" title="Кабель OPVC-JZ/OZ-YCY 2 X 0,5 мм2" href="http://tkdkabel.ru/index.php?route=product/product&amp;path=60_64_78_152&amp;product_id=292">1001093</a></td>
                                                                    <td>2 X 0,5</td>
                                                                    <td>7,0</td>
                                                                    <td>41,0</td>
                                                                    <td>70,0</td>
                                                                </tr>
                                                                                                                                                                                            
                                                                     
                                                                                                                                        
                                                                                                                                         
 
                                                
 
                                                                <tr>
                                                                    <td><a target="_blank" data-uk-tooltip="{pos:'top-left'}" title="Кабель OPVC-JZ/OZ-YCY 2 X 0,75 мм2" href="http://tkdkabel.ru/index.php?route=product/product&amp;path=60_64_78_152&amp;product_id=300">1001092</a></td>
                                                                    <td>2 X 0,75</td>
                                                                    <td>7,5</td>
                                                                    <td>46,0</td>
                                                                    <td>83,0</td>
                                                                </tr>
                                                                                                                                                                                            
                                                                     
                                                                                                                                        
                                                                                                                                        
                                                                                                                                                                                            
                                                                     
                                                                     
                                                                        <tr>
                                                                            <td colspan="100%">
 
                                                                            </td>  
                                                                        </tr>
                                                                                                                                            
                                                                                              
 
                                                                <tr>
                                                                    <td><a target="_blank" data-uk-tooltip="{pos:'top-left'}" title="Кабель OPVC-JZ/OZ-YCY 4 G 6 мм2" href="http://tkdkabel.ru/index.php?route=product/product&amp;path=60_64_78_152&amp;product_id=335">1000705</a></td>
                                                                    <td>4 G 6</td>
                                                                    <td>15,8</td>
                                                                    <td>318,0</td>
                                                                    <td>485,0</td>
                                                                </tr>
                                                                                                                                                                                            
                                                                     
                                                                                                                                        
                                                                                                                                         
 
                                                                <tr>
                                                                    <td><a target="_blank" data-uk-tooltip="{pos:'top-left'}" title="Кабель OPVC-JZ/OZ-YCY 5 G 6 мм2" href="http://tkdkabel.ru/index.php?route=product/product&amp;path=60_64_78_152&amp;product_id=336">1000719</a></td>
                                                                    <td>5 G 6</td>
                                                                    <td>17,0</td>
                                                                    <td>441,0</td>
                                                                    <td>609,0</td>
                                                                </tr>
                                                                                                                                                                                            
                                                                     
                                                                     
                                                                        <tr>
                                                                            <td colspan="100%">
 
                                                                            </td>  
                                                                        </tr>
                                                                                                                                            
                                                                                                                                                                                                                                                         
                                                                     
                                                                                                                                        
                                                                                                                                         
 
                                                                <tr>
                                                                    <td><a target="_blank" data-uk-tooltip="{pos:'top-left'}" title="Кабель OPVC-JZ/OZ-YCY 5 G 10 мм2" href="http://tkdkabel.ru/index.php?route=product/product&amp;path=60_64_78_152&amp;product_id=338">1000715</a></td>
                                                                    <td>5 G 10</td>
                                                                    <td>21,8</td>
                                                                    <td>714,0</td>
                                                                    <td>1.105,0</td>
                                                                </tr>
                                                                                                                                                      
                                                                     
                                                                     
                                                                        <tr>
                                                                            <td colspan="100%">
 
                                                                            </td>  
                                                                        </tr>
                                                                <tr>
                                                                    <td><a target="_blank" data-uk-tooltip="{pos:'top-left'}" title="Кабель OPVC-JZ/OZ-YCY 4 G 25 мм2" href="http://tkdkabel.ru/index.php?route=product/product&amp;path=60_64_78_152&amp;product_id=340">1000700</a></td>
                                                                    <td>4 G 25</td>
                                                                    <td>28,9</td>
                                                                    <td>1.310,0</td>
                                                                    <td>1.720,0</td>
                                                                </tr>
                                                                        <tr>
                                                                            <td colspan="100%">
 
                                                                            </td>  
                                                                        </tr>
 
                                                                                                                                                                                        
                                                                                                                
                                                    </tbody>
                                                </table>

вот из исходного кода отрывок этот, сама таблица слишком большая тут только фрагмент

Добавлено через 3 часа 5 минут
Вопрос уже решил. Проблему нашел. Может быть кому то пригодится мой вариант решения проблемы, суть:

Stray (start или end) tag — означает что отмеченный валидатором тег без каких либо оснований был вставлен не к месту и не по правилам стандарта html. В моем случае ошибка была в том, что я не заметил в исходном коде отсутствие тегов table. На странице очень много таблиц, которые выводятся программно и я просто не туда куда нужно смотрел. Картина у меня была такая

HTML5
1
2
3
4
5
6
7
<div>Контент</div>
<tr>
<td>
Контент
</td>
</tr>
<div>Контент</div>



0



Привет.  Сразу отвечу на ваш вопрос: стоит ли читать Вам этот урок? Перейдите на весьма полезный и бесплатный сервис validator.w3.org, вбейте туда адрес своего сайта и, если вы видите, что на Вашем сайте есть ошибки, то урок прочитать стоит. Примеры отображения ошибок с помощью данного онлайн валидатора:

На моем же блоге сейчас нет подобных ошибок, я от них избавился (всего было более 70 ошибок и более 80-ти предупреждений). Чтобы внести  ясность, расскажу, что такое валидный код и зачем он нам необходим.

Валидный код — это код, который соответствует стандартам.

На валидность можно проверить HTML, CSS, всяческие микроразметки и другое. Сегодня я расскажу про валидность в HTML.

  • Валидный код необязателен, но количество ошибок должно быть минимальным, иначе ваш сайт не будет кроссбраузерным. Валидность кода нужна в прежде всего для того, чтобы ваш сайт отображался правильно во всех браузерах.
  • Поисковые роботы «разговаривают» с вашим сайтом на языке HTML, поэтому важно отдавать четко и ясно контент на сайте со всеми «закрытыми тегами» и прочее.
  • Валидность HTML влияет на SEO, но довольно незначительно (если, конечно, у вас не сотни, а то и тысячи ошибок). Рекомендую почитать интересные наблюдения Деваки «Влияние качества HTML на их ранжирование».
  • Когда я делал на своем сайте код валидным, я нашел и исправил свои глупые ошибки (повторение тегов, пропущенная буква и т.п.).
  • Не стоит «рвать себе *опу», если какую-то ошибку сложно исправить, либо ее исправление принесет вред функциональности сайта. Главное, чтобы было удобно пользователю.

Ниже я разберу основные ошибки, на которые указывал валидатор. Если вдруг в списке ниже не окажется вашей ошибки, впишите ее в комментариях, попробуем вместе разобраться и я добавлю решение данной проблемы в данный урок. Кстати, да, ошибки, на которые указывает валидатор w3c смотрим тут:

В каждой ошибке есть подсказка — это номер строки в исходном коде странице, а из нее уже можно определить примерно в каком файле темы расположена данная строка. Исходный код страницы смотрим с помощью CTRL+U (в основных браузерах).

Перед тем, как приступить к работе, сделайте резервную копию шаблона вашего сайта.

Также для упрощения нахождения ошибок в исходном коде, можете использовать HTML валидатор для Mozilla Firefox. Установив его, перейдя в исходный код страницы, вы увидите те же самые ошибки, что указывает сервис validator.w3.org.  Кликнув по названию ошибки (в левом нижнем углу), вас автоматически перебросит на ту строчку, где находится данный невалидный код.

Нахождение ошибок в HTML с помощью валидатора w3c и их исправление

Ищите в списке ниже свою ошибку и кликнуть по ней, вас автоматически «прокрутит» куда надо.

  1. No space between attributes.
  2. The width attribute on the td element is obsolete. Use CSS instead.
  3. An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.
  4. Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.
  5. The hgroup element is obsolete. To mark up subheadings, consider either just putting the subheading into a p element after the h1-h6 element containing the main heading, or…
  6. Element «noindex» undefined.
  7. End tag for element «div» which is not open
  8. Document type does not allow element «li» here; missing one of «ul», «ol», «menu», «dir» start-tag.
  9. End tag for «div» omitted, but OMITTAG NO was specified.
  10. There is no attribute «border».
  11. Character «<» is the first character of a delimiter but occurred as data.
  12. Saw » when expecting an attribute name. Probable cause: = missing immediately before.
  13. The align attribute on the img element is obsolete. Use CSS instead.
  14. Bad value Блог Алексея Смирнова for attribute href on element link: Illegal character in path segment: not a URL code point.

1. No space between attributes.

…rel=»shortcut icon» href=»http://arbero.ru/favicon.ico» ; type=»image/x-icon» Просто убираем «точку с запятой».

2. The width attribute on the td element is obsolete. Use CSS instead.

td valign=»center» width=»80″ height=»80″ >

Подобное преобразуем к виду

td style=»align:center; width:80; height: 80;»>

3. An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.

Одна из самых частых ошибок. Просто не хватает альтернативного текста для картинки. Прописываем тег alt.

4. Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.

section id=»comments» >

Внутри блока section должны содержаться что-то из тегов h2-h6, если их нет, просто переименовываем слово section на div

 5. The hgroup element is obsolete. To mark up subheadings, consider either just putting the subheading into a p element after the h1-h6 element containing the main heading,

or else putting the subheading directly within the h1-h6 element containing the main heading, but separated from the main heading by punctuation and/or within, for example, a span class=»subheading» element with differentiated styling. To group headings and subheadings, alternative titles, or taglines, consider using the header or div elements.

Аналогично предыдущему пункту. Просто меняем фразу hgroup на div. Вы можете использовать инструмент «Найти/заменить все» в текстовом редакторе, чтобы ускорить подобные процессы.

6. Element «noindex» undefined

Чтобы тег noindex стал валидным, пишем его в виде комментирования, то есть так:

&lt;!--noindex--&gt;Неиндексируем&lt;!--/noindex--&gt;

7. End tag for element «div» which is not open

Закрывающий тег div лишний. Убираем его.

8. Document type does not allow element «li» here; missing one of «ul», «ol», «menu», «dir» start-tag

Неправильное использование тега «li»: отсутствует тег «ul», «ol» и др. Проверьте.

9. End tag for «div» omitted, but OMITTAG NO was specified

Не хватает закрывающего тега div.

10. There is no attribute «border»

alt=»» width=»1″ height=»1″ border=«0″/>

Просто удаляем фразу border=»0″.

11. Character «<» is the first character of a delimiter but occurred as data

Не используйте тег «<» перед обычными словами, используйте лучше разные кавычки.

12. Saw » when expecting an attribute name. Probable cause: = missing immediately before.

Лишняя кавычка, удалите ее.

13. The align attribute on the img element is obsolete. Use CSS instead.

Не используйте значение align внутри тега img. Пропишите ее отдельно, в таком виде:

&lt;div align='center'&gt;тут картинка (img src)&lt;/div&gt;

14. Bad value for attribute href on element link: Illegal character in path segment: not a URL code point.

То, что идет в href должно быть ссылкой, начинаться с http, но никак не слово.

Заключение

Если у вас на сайте есть какая-то ошибка, которой нет в этом списке — пишите в комментариях. Разберемся, а я дополню статью. Повторюсь, если какую-то ошибку не получается исправить, не стоит заморачиваться.

У меня на блоге осталась ошибка (хотя еще вчера почему-то код был без ошибок):

The text content of element script was not in the required format: Expected space, tab, newline, or slash but found < instead.

Если в курсе, как исправить ее, буду признателен. Я немножко перфекционист. 🙂

Будете ли вы делать HTML код сайта валидным?

Пожелаю вам получить валидный HTML код на вашем сайте, уведомление которого выглядит так:

P.s. Вы часто перегружаете свой организм? Тогда вам нужна программа детоксикации. Восстановите силы и энергетический баланс.

Я новый программист, работающий на моем первом сайте RoR (с внедренной загрузкой) и имеющий некоторые (казалось бы, простые) проблемы с HTML, заметил проблемы с совместным использованием изображений через отладчик facebook. Ошибка говорит: «У вашей страницы есть метатеги в теле, а не на голове. Это может быть связано с тем, что ваш HTML был искажен, и они упали ниже в дереве разбора. Пожалуйста, исправьте это, чтобы теги были пригодны для использования «.

Я тестировал на http://validator.w3.org/ с HTML5. Это две ошибки, которые мне особенно интересны:

Line 33, Column 20: Stray start tag html.
<html class="no-js">

Line 36, Column 6: Stray start tag head.
<head>

Я исследовал это некоторое время и нашел много похожих вопросов: Stray start tag html, Stray start tag HTML в валидаторе? , Stray start tag Error, Получение «Stray end tag html» из W3C Validator, хотя никто не решил мою ситуацию. Я считаю, что у меня правильный формат HTML5:

<html>
  <head>
    <meta>
    <link>
    <script></script>
    <title></title>
  </head>
  <body>
  </body>
</html>

Мне любопытно, если «no-js» или div id имеют эффект и не нашли большой помощи в этом отношении.

Мой код:

<html class="no-js">

<div id="header">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">

    <meta property="og:title" content="one breath">
    <meta property="og:description" content="This moment is your life. Breathe. Notice it.">
    <meta property="og:image" content="http://i61.tinypic.com/2yjzpsz.png">
    <meta property="og:url" content="http://www.onebreath.io">

    <link rel="stylesheet" href="bootstrap.css">
    <link rel="stylesheet" href="bootstrap-theme.css">
    <link rel="stylesheet" href="main.css">
    <link rel="image" type="image/png" href="breathenoticeit.png">

    <script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>

    <!-- favicon -->
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

    <title>one breath</title>
</head>
</div>

<body>
.... content ....
</body>     
</html>

Мой вопрос: что такое неправильный HTML? В частности, как я могу устранить ошибки заголовка стартового тега html и блуждающих начальных тегов, заданные модулем проверки HTML (чтобы в конечном итоге исправить ошибку отладчика facebook и отобразить правильное изображение)?

Любая помощь очень ценится! (Полный сайт www.onebreath.io)

РЕДАКТИРОВАТЬ

Уточнен вопрос.

658 votes

1 answers

Get the solution ↓↓↓

I am trying to validate this HTML document in http://validator.w3.org/#validate_by_input but I am getting the following errors:

 Line 10, Column 71: Stray start tag html.
<html dir="rtl" lang="ar" prefix="og: http://ogp.me/ns#" class="no-js">

This is the HTML I am inputting:

<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if IE 7]><html <?php language_attributes(); ?> class="ie ie7 no-js" /><![endif]-->
<!--[if IE 8]><html <?php language_attributes(); ?> class="ie ie8 no-js" /><![endif]-->
<!--[if !(IE 7) | !(IE 8)  ]><!--><html <?php language_attributes(); ?> class="no-js" /><!--<![endif]-->
<head>

2022-04-1

Write your answer


116

votes

Answer

Solution:

The<meta> tag here implies an additional<html> and<head> tag before.

According to the HTML5 standard some tags are optional.<html> and<head> are such tags. You can drop them, but the parser will insert them, where needed. In your case they are needed before the<meta> tag, because<meta> is defined as a child element to the<head> tag, which in turn is a child of<html>.

So what the validator actually sees is this:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if IE 7]><html <?php language_attributes(); ?> class="ie ie7 no-js" /><![endif]-->
<!--[if IE 8]><html <?php language_attributes(); ?> class="ie ie8 no-js" /><![endif]-->
<!--[if !(IE 7) | !(IE 8)  ]><!--><html <?php language_attributes(); ?> class="no-js" /><!--<![endif]-->
<head>

Now it is obvious, why it complains about the «second»<html> tag.

The solution would be to just change the ordering of your tags. Put the<html> and<head> tag before the<meta> tag, and you should be fine.


Share solution ↓

Additional Information:

Date the issue was resolved:

2022-04-1

Link To Source

Link To Answer
People are also looking for solutions of the problem: installation failed, reverting ./composer.json and ./composer.lock to their original content

Didn’t find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.


Similar questions

Find the answer in similar questions on our website.

Понравилась статья? Поделить с друзьями:
  • Stop 0x00000051 windows 7 при загрузке как исправить
  • Stop 0x00000051 windows 7 registry error
  • Stop 0x00000050 windows 7 синий экран как исправить
  • Stop 0x00000050 windows 7 при загрузке как исправить через командную строку
  • Stop 0x0000003b windows 7 64 как исправить