Пустой title/Нет секции HEAD

12
samimages
На сайте с 31.05.2009
Offline
427
#11



<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>

вот эту хреновину надо привести в божеский вид...

например закомментировать ее нафиг


<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
/*
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
*/
?>
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

Вот так вот написать и потом посмотрите по валидатору, а то без нее объявленный доктайп не будет работать....

Опыт как иммунитет — приобретается в муках! Аудит семантики от 15К [долго] - ЛС
Mad_Man
На сайте с 10.11.2008
Offline
162
#12
BW
На сайте с 28.11.2009
Offline
78
#13

<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

// needed to seperate the ISO number from the language file constant _ISO

/*

$iso = split( '=', _ISO );

// xml prolog

echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';

*/

?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>

Сделал так. Правильно?

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.political-fear.ru%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

samimages
На сайте с 31.05.2009
Offline
427
#14

нижний <html> убрать надо

<?xml version="1.0"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

вот такой порядок

BW
На сайте с 28.11.2009
Offline
78
#15

<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

// needed to seperate the ISO number from the language file constant _ISO

/*

$iso = split( '=', _ISO );

// xml prolog

echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';

*/

?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

samimages
На сайте с 31.05.2009
Offline
427
#16



<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
/*
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
*/
?>
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




BW
На сайте с 28.11.2009
Offline
78
#17

Так не хочет работать....

<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

// needed to seperate the ISO number from the language file constant _ISO

/*

$iso = split( '=', _ISO );

// xml prolog

echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';

*/

?>

<?xml version="1.0"?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>

<title>

samimages
На сайте с 31.05.2009
Offline
427
#18

В личку ответил

12

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий