Помогите, пишу код в хеад, выдаёт ошибку
echo"\n" . '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" />'; Помогите, пишу код в хеад, выдаёт ошибку
echo"\n" . '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" />'; а какая ошибка?
Eternal, This page contains the following errors:
error on line 6 at column 6: error parsing attribute name
Below is a rendering of the page up to the first error.
# Iron_Man (21.05.2018 / 12:11)Замени доктайп на последний HTML5. В 6-м Джоне посмотри, как доктайп прописан, и напиши по аналогу в своей версии.
Eternal, This page contains the following errors:
error on line 6 at column 6: error parsing attribute name
Below is a rendering of the page up to the first error.
echo "\n" . ' <!DOCTYPE html/> ';
echo "\n" . ' <html lang="ru"/> ';
echo "\n" . '<head><meta charset="utf-8"/> ';
echo "\n" . ' <meta http-equiv="X-UA-Compatible" content="IE=edge"/>';
Не работает
Iron_Man, Попробуй так если код в середине (где и должен быть)
"\n" . '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes">' . aRwap, Не работает
Iron_Man, Проще сразу в шапке исправить чем гадать где у тебя лишние echo и ;.
echo'<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes">';"\n" . ?? Serghei, Потому что это код с 322