HTML Guide
A stray start tag has been found in the document. As this tag defines the start of the whole HTML document, it should appear only once.
Related W3C validator issues
Stray start tag “head”.
A start tag has been found in an unexpected place in the document structure. Check that the section appears before the section, and that is not duplicated.
The section of an HTML document is the container of metadata about the document, and must appear before the section. A common cause of this issue is duplicated sections.
Here is an example of a minimal HTML document structure:
html> head> title>Testtitle> head> body> p>p> body> html>
Stray start tag “script”.
A start tag has been found in an unexpected place in the document structure. Check that the section appears within the or sections.
Here’s an example of a script inserted in the head of the document:
html> head> title>Testtitle> script> console.log("Hello from the head"); script> head> body> p>p> body> html>
Stray start tag “style”.
A start tag has been found in an unexpected place in the document structure. Check that the section appears within the section.
Although in general it’s better to put your styles in external stylesheets and apply them using elements, CSS styles can also be included inside a document using the tag. In this case, it should be placed within the section, like in this example:
html> head> title>Testtitle> style> p style> head> body> p>This text will be green.p> body> html>
Attribute “isolang” not allowed on element “html” at this point.
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">
End tag X did not match the name of the current open element Y.
And end tag has been found that does not match the current open element. Check the context to fix the start and end tags.
Start tag “a” seen but an element of the same type was already open.
An tag can’t include other tags inside. Most probable cause is an unclosed tag, like in this example:
a href="one.html">Page 1 a href="two.html">Page 2a>
Start tag “button” seen but an element of the same type was already open.
A tag can’t include other tags inside. Most probable cause is an unclosed tag, like in this example:
button>Submit button>Cancelbutton>
Start tag seen without seeing a doctype first. Expected “”.!DOCTYPE>
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 , which must appear before the start tag.
Here’s an example of a minimal HTML5 document:
html> head> title>Testtitle> head> body> p>p> body> html>
Stray doctype.
All HTML documents must start with a (Document Type Declaration), that informs browsers about the type and version of HTML used to build the document. In HTML5, this is simply 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:
html> head> title>Testtitle> head> body> p>p> body> html>
Stray end tag “X”.
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>itemli> ul> ul>
Что за ошибки в валидаторе Markup Validator Service W3C?

День добрый. Проверяю свой сайт на ошибки, дубли начали появляться ещё. Валидатор выдал это:
Не очень понятно, что они означают, особенно Fatal Error, и как их исправить.
Сам сайт на Битриксе, поэтому, ошибки могут тянуться и из php шаблонов.
Error: Bad start tag in div in noscript in head. From line 84, column 11; to line 84, column 15 ↩↩↩↩var _ Error: Stray end tag head. From line 93, column 1; to line 93, column 7 script>↩↩↩↩↩↩↩↩ ↩↩ Fatal Error: Cannot recover after last error. Any further errors will be ignored. From line 95, column 1; to line 95, column 39 ↩↩↩↩ ↩↩
- Вопрос задан более двух лет назад
- 2221 просмотр
Комментировать
Решения вопроса 1

Вадим @MrDecoy Куратор тега HTML
Верставший фронтендер
Ну а что написано то?
11. Что div в noscript который в head, а в head есть место дивам? Нет.
14. Открываете скрипт, но закрываете head внутри script.
Всю текстовую информацию, которую Вы можете предоставить, не стоит размещать виде картинки. Вы как предлагаете желающим помочь гуглить ошибки? Ручками вводить? Ну такое..
Ответ написан более двух лет назад

Надежда Головина @Golovina90 Автор вопроса
Спасибо. Но у меня бОльший интерес вызывает именно Fatal Error, потому что не могу понять. на что ругается. Только если на «1».

Надежда Головина @Golovina90 Автор вопроса
11 — ругается на скрипт Яндекс Метрики)

Вадим @MrDecoy Куратор тега HTML
Надежда Головина, опять же, читаем что написано:
не получилось восстановиться после предыдущей ошибки.
Ошибки валидатора не редко имеют каскадный эффект. Пофиксили одну — исправили несколько.
Читает предыдущую ошибку: 15. body уже открыт, а вы открываете ещё один.

Вадим @MrDecoy Куратор тега HTML
11 — ругается на скрипт Яндекс Метрики)
Нет. Ругается на разработчика, который разместил noscript с дивом внутри в head, а не в body.

Надежда Головина @Golovina90 Автор вопроса
Вадим, вот 15 вообще весело. В коде страницы только 2 body — открывающий и закрывающий. Откуда еще взялись — без понятия
Stray start tag html как исправить
Здесь могла бы быть ваша реклама
Покинул форум
Сообщений всего: 4574
Дата рег-ции: Июль 2006
Откуда: Israel
Помог: 3 раз(а)
Секрет
Теперь, когда вы уже наверняка второпях отправили свой запрос,
я расскажу вам простой секрет, который сэкономит вам уйму ожиданий,
даже если первый ответ по теме последуем сразу же.
Само собой я знаю что ответят мне тут же, и если я посмотрю
на сообщения на форуме, то пойму что в общем то я и не ошибаюсь.
Но еще я точно замечу, что очень мало тем, в которых всего два ответа :
вопрос автора и еще два сообщение вида Ответ + Спасибо
После этого приходится начинать уточнять этим неграмотным что мне надо.
Они что, сами читать не умеют? А уточнять приходится.
И иногда пока они переварят то что я им скажу проходит и не одна ночь..
Уверен что если бы я им сказал что у меня есть
фиолетовый квадрат, и нужно превратить его в синий треугольник
и я пытался взять кисточку, макнуть в банку и поводить ей по квадрату
но почему то кисточка не принимала цвет краски в банке,
то на мой вопрос — где взять правильные банки мне бы ответили гораздо быстрее
предложив её открыть, а не тратить еще стольник на жестянку.
Поэтому с тех пор я строю свои вопросы по проверенной давным давно схеме:
Что есть
Что нужно получить
Как я пытался
Почему или что у меня не получилось.
На последок как оно происходит на форумах
Цитата:
Новичок: Подскажите пожалуста самый крепкий сорт дерева! Весь инет перерыл, поиском пользовался!
Старожил: Объясни, зачем тебе понадобилось дерево? Сейчас оно в строительстве практически не используется.
Новичок: Я небоскрёб собираюсь строить. Хочу узнать, из какого дерева делать перекрытия между этажами!
Старожил: Какое дерево? Ты вообще соображаешь, что говоришь?
Новичок: Чем мне нравиться этот форум — из двух ответов ниодного конкретного. Одни вопросы неподелу!
Старожил: Не нравится — тебя здесь никто не держит. Но если ты не соображаешь, что из дерева небоскрёбы не строят, то лучше бы тебе сначала школу закончить.
Новичок: Не знаите — лучше молчите! У меня дедушка в деревянном доме живёт! У НЕГО НИЧЕГО НЕ ЛОМАЕТСЯ.
Но у него дом из сосны, а я понимаю, что для небоскрёба нужно дерево прочнее! Поэтому и спрашиваю. А от вас нормального ответа недождёшся.
Прохожий: Самое крепкое дерево — дуб. Вот тебе технология вымачивания дуба в солёной воде, она придаёт дубу особую прочность:
Новичок: Спасибо, братан! То что нужно.
Отредактировано модератором: Uchkuma, 26 Апреля, 2011 — 10:21:12
HTML Guide
A start tag has been found in an unexpected place in the document structure. Check that the section appears before the section, and that is not duplicated.
The section of an HTML document is the container of metadata about the document, and must appear before the section. A common cause of this issue is duplicated sections.
Here is an example of a minimal HTML document structure:
html> head> title>Testtitle> head> body> p>p> body> html>
Related W3C validator issues
Stray start tag “html”.
A stray start tag has been found in the document. As this tag defines the start of the whole HTML document, it should appear only once.
Stray start tag “script”.
A start tag has been found in an unexpected place in the document structure. Check that the section appears within the or sections.
Here’s an example of a script inserted in the head of the document:
html> head> title>Testtitle> script> console.log("Hello from the head"); script> head> body> p>p> body> html>
Stray start tag “style”.
A start tag has been found in an unexpected place in the document structure. Check that the section appears within the section.
Although in general it’s better to put your styles in external stylesheets and apply them using elements, CSS styles can also be included inside a document using the tag. In this case, it should be placed within the section, like in this example:
html> head> title>Testtitle> style> p style> head> body> p>This text will be green.p> body> html>
Bad start tag in “iframe” in “noscript” in “head”.
There is an iframe tag inside a noscript tag that is itself inside the head section of the HTML document. This is not allowed because an iframe cannot be nested inside the head section.
To fix this issue, you may move the noscript section that contains the iframe tag outside of the head section, and ensure that it is placed within the body section of the HTML document.
For example, this is invalid HTML because the head section cannot contain iframe elements:
html lang="en"> head> title>My webpagetitle> noscript> p>Please enable JavaScript to view this websitep> iframe src="https://example.com/">iframe> noscript> head> body> body> html>
Moving the noscript inside the body section fixes the issue, as that’s where iframe elements belong:
html lang="en"> head> title>My webpagetitle> head> body> noscript> p>Please enable JavaScript to view this websitep> iframe src="https://example.com/">iframe> noscript> body> html>
Element “head” is missing a required instance of child element “title”.
The section of an HTML document contains metadata about the document, and as a minimum it must include a tag defining the document title.
Common causes for this issue are forgetting to define the , or duplicated sections where one of them does not include the title.
Here’s an example of a minimal HTML document including the title:
html> head> title>Don't panic! This is the titletitle> head> body> p>p> body> html>
End tag X did not match the name of the current open element Y.
And end tag has been found that does not match the current open element. Check the context to fix the start and end tags.
“meta” element between “head” and “body”.
tags, used for defining metadata about HTML documents, must appear within the . section, but it has been found out of place. Check the document structure to ensure there are no tags outside the head section.
A common cause of this issue is having a duplicated, out of place . section. Ensure that this section appears in its proper place and is the only container for tags.
Start tag “a” seen but an element of the same type was already open.
An tag can’t include other tags inside. Most probable cause is an unclosed tag, like in this example:
a href="one.html">Page 1 a href="two.html">Page 2a>
Start tag “button” seen but an element of the same type was already open.
A tag can’t include other tags inside. Most probable cause is an unclosed tag, like in this example:
button>Submit button>Cancelbutton>
Start tag “head” seen but an element of the same type was already open.
An opening tag has been found in an incorrect place. Check that there’s only a tag in the document.
This issue can happen because the expected closing tag was misspelled as , as in this example:
html lang=""> head> title>Testtitle> head> body> body> html>
Or, it could happen because another . section was nested inside a previous one:
html lang=""> head> title>Testtitle> head> head> head> body> body> html>