от для прикладу скажіть будь-ласки чи роблю я правильно ось код з php.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?
$titletitle = $_logic['headerarr']['titletitle'];
$titlekeywords = $_logic['headerarr']['titlekeywords'];
?>
<title><?= htmlspecialchars($titletitle); ?></title>
<?= $titlekeywords; ?>
<? if(isset($_logic['headerarr']['favicon'])): ?>
<link rel="icon" href="<?= $_logic['headerarr']['favicon']; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?= $_logic['headerarr']['favicon']; ?>" type="image/x-icon" />
<? endif; ?>
<link rel="stylesheet" type="text/css" href="/css/reset.css" media="all" />
<link rel="stylesheet" type="text/css" href="/css/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="/css/anythingslider.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Scada:400italic,400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
<script src="/js/jquery-1.10.0.min.js" type="text/javascript"></script>
<script src="/js/selectivizr-min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/jquery.znice.css" media="all" />
<script src="/js/jquery.validate.min.js" type="text/javascript"></script>
<script src="/js/jquery.znice.validate.js" type="text/javascript"></script>
<script src="/js/jquery.znice.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/fancybox/jquery.fancybox.css" media="all" />
<script src="/fancybox/jquery.fancybox.js" type="text/javascript"></script>
<script src="/js/modernizr.js" type="text/javascript"></script>
<script src="/js/jquery.watermark.min.js" type="text/javascript"></script>
<script src="/js/jquery.anythingslider.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/connectedcarousel.css" media="all" />
<script src="/js/jcarousel.connected-carousels.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/jcarousel.css" media="all" />
<script src="/js/jquery.jcarousel.js" type="text/javascript"></script>
<script src="/js/scr.js" type="text/javascript"></script>
<script>
var delay=1000, atTime=3000;
</script>
<!--[if lt IE 9]>
<script>
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('time');
</script>
<script src="js/pie.js" type="text/javascript"></script>
<script src="js/css3-mediaqueries.js"></script>
<![endif]-->
<!--[if lt IE 8]><script src="js/oldie/warning.js"></script><script>window.onload=function(){e("js/oldie/")}</script><![endif]-->
<?= $varsline['headcode']; ?>
</head>
<body>
<div class="zHiddenBlock">
<div class="zMess" id="added">
<div class="textPage ctext">
Ваше сообщение отправлено
</div>
</div>
<div class="zMess" id="nonadded">
<div class="textPage ctext">
Ваше сообщение не отправлено
</div>
</div>
<div class="contactsForm zForm" id="form" >
<div class="contacts-form-text">
<p><?= t_('ansvtitle'); ?></p>
</div>
<div class="contacs-form-main">
<form class="zNice" action="/work.php" >
<input type="hidden" name="act" value="addreview" />
<input type="hidden" name="parentid" value="0" id="asp" />
<input type="text" name="sname" style="display: none;"/>
<div class="zForm-row">
<input type="text" required="required" placeholder="Имя" name="name" />
</div>
<div class="zForm-row">
<input type="text" phoneRU="phoneru" placeholder="Телефон" name='telefone' />
</div>
<div class="zForm-row">
<input type="email" placeholder="E-mail" name="email" />
</div>
<div class="zForm-row">
<textarea placeholder="Введите ответ" rows="5" name="text2" required="required"></textarea>
</div>
<div class="zForm-row zForm-center">
<input type="submit" value="Отправить" class="submit-button" />
</div>
</form>
</div>
</div>
</div>
<header class="header">
<div class="header-white">
<div class="mbox">
<div class="header-street floatLeft">
<span class="icon icon_point"></span><span class="header-text"><?= htmlspecialchars($varsline['adres']); ?></span>
</div>
<div class="header-telefone floatLeft">
<span class="icon icon_telefone"></span><span class="header-text"><?= htmlspecialchars($varsline['phone']); ?></span>
</div>
<div class="header-mob-telefone floatLeft">
<span class="icon icon_mobTelefone"></span><span class="header-text"><?= htmlspecialchars($varsline['subphone']); ?></span>
</div>
<div class="header-email floatLeft">
<a href="mailto:<?= htmlspecialchars($varsline['email']); ?>">
<span class="icon icon_email"></span><span class="header-text"><?= htmlspecialchars($varsline['email']); ?></span>
</a>
</div>
<!-- <div class='header-cabinet floatRight'>
<a href="#">
<span class="icon icon_key"></span><span class="header-text">Личный кабинет</span>
</a>
</div> -->
</div>
</div>
<div class="header-grey">
<div class="mbox">
<div class="header-logo">
<?= $varsline['logo']; ?>
</div>
<div class="header-navigation">
<ul>
<? foreach ($_logic['mainmenuarr'] as $value): ?>
<li><a href="<?= $value['url']; ?>"><?= htmlspecialchars($value['title']); ?></a></li>
<? endforeach; ?>
</ul>
</div>
</div>
</div>
</header>
<div class="main-wrapper">
<div class="main mbox">
<aside class="sidebar_w">
<div class="sidebar">
<div class="contText">
<div class="menu-title">
<?= t_('leftmenutitle'); ?>
</div>
<div class="menu-content">
<ul>
<? foreach ($_logic['leftmenu'] as $value):
if ($value['parentid'] == 0): ?>
<li class="<? if (!empty($value['subitem'])) echo 'dobMenu-item'; ?> <? if ($act == 'services' && (in_array($id, $value['ids']))) echo ' active'; ?>">
<a href="<?= $value['url']; ?>"><span><?= htmlspecialchars($value['title']); ?></span><? if (!empty($value['subitem'])) echo '<span class="icon unhover_dobMenu"></span>'; ?><span class="vfix"></span></a>
<? if (!empty($value['subitem'])): ?>
<div class="dobMenu">
<ul>
<? foreach ($value['subitem'] as $subitem): ?>
<li><a href="<?= $subitem['url']; ?>"><span class="icon dobMenu_item_icon"></span><?= htmlspecialchars($subitem['title']); ?></a></li>
<? endforeach; ?>
</ul>
</div>
<? endif; ?>
</li>
<? endif; ?>
<? endforeach; ?>
</ul>
</div>
</div>
</div>
</aside>
<section class="content_w">
Ось те що в мене вийшло.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="icon" href="<?= $_logic['headerarr']['favicon']; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?= $_logic['headerarr']['favicon']; ?>" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/css/reset.css" media="all" />
<link rel="stylesheet" type="text/css" href="/css/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="/css/anythingslider.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Scada:400italic,400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
<script src="/js/jquery-1.10.0.min.js" type="text/javascript"></script>
<script src="/js/selectivizr-min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/jquery.znice.css" media="all" />
<script src="/js/jquery.validate.min.js" type="text/javascript"></script>
<script src="/js/jquery.znice.validate.js" type="text/javascript"></script>
<script src="/js/jquery.znice.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/fancybox/jquery.fancybox.css" media="all" />
<script src="/fancybox/jquery.fancybox.js" type="text/javascript"></script>
<script src="/js/modernizr.js" type="text/javascript"></script>
<script src="/js/jquery.watermark.min.js" type="text/javascript"></script>
<script src="/js/jquery.anythingslider.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/connectedcarousel.css" media="all" />
<script src="/js/jcarousel.connected-carousels.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/css/jcarousel.css" media="all" />
<script src="/js/jquery.jcarousel.js" type="text/javascript"></script>
<script src="/js/scr.js" type="text/javascript"></script>
<script>
var delay=1000, atTime=3000;
</script>
<!--[if lt IE 9]>
<script>
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('time');
</script>
<script src="js/pie.js" type="text/javascript"></script>
<script src="js/css3-mediaqueries.js"></script>
<![endif]-->
<!--[if lt IE 8]><script src="js/oldie/warning.js"></script><script>window.onload=function(){e("js/oldie/")}</script><![endif]-->
</head>
<body>
<div class="zHiddenBlock">
<div class="zMess" id="added">
<div class="textPage ctext">
Ваше сообщение отправлено
</div>
</div>
<div class="zMess" id="nonadded">
<div class="textPage ctext">
Ваше сообщение не отправлено
</div>
</div>
<div class="contactsForm zForm" id="form" >
<div class="contacts-form-text">
<p class="ansvtitle"></p>
</div>
<div class="contacs-form-main">
<form class="zNice" action="/work.php" >
<input type="hidden" name="act" value="addreview" />
<input type="hidden" name="parentid" value="0" id="asp" />
<input type="text" name="sname" style="display: none;"/>
<div class="zForm-row">
<input type="text" required="required" placeholder="Имя" name="name" />
</div>
<div class="zForm-row">
<input type="text" phoneRU="phoneru" placeholder="Телефон" name='telefone' />
</div>
<div class="zForm-row">
<input type="email" placeholder="E-mail" name="email" />
</div>
<div class="zForm-row">
<textarea placeholder="Введите ответ" rows="5" name="text2" required="required"></textarea>
</div>
<div class="zForm-row zForm-center">
<input type="submit" value="Отправить" class="submit-button" />
</div>
</form>
</div>
</div>
</div>
<header class="header">
<div class="header-white">
<div class="mbox">
<div class="header-street floatLeft">
<span class="icon icon_point"></span><span class="header-text"></span>
</div>
<div class="header-telefone floatLeft">
<span class="icon icon_telefone"></span><span class="header-text"></span>
</div>
<div class="header-mob-telefone floatLeft">
<span class="icon icon_mobTelefone"></span><span class="header-text"></span>
</div>
<div class="header-email floatLeft">
<a href="mailto:<?= htmlspecialchars($varsline['email']); ?>">
<span class="icon icon_email"></span><span class="header-text"></span>
</a>
</div>
<!-- <div class='header-cabinet floatRight'>
<a href="#">
<span class="icon icon_key"></span><span class="header-text">Личный кабинет</span>
</a>
</div> -->
</div>
</div>
<div class="header-grey">
<div class="mbox">
<div class="header-logo">
</div>
<div class="header-navigation">
<ul>
<li><a href="javascript:void(0);"></a></li>
</ul>
</div>
</div>
</div>
</header>
<div class="main-wrapper">
<div class="main mbox">
<aside class="sidebar_w">
<div class="sidebar">
<div class="contText">
<div class="menu-title">
</div>
<div class="menu-content">
<ul>
<li>
<a href="javascript:void(0);"><span></span><span class="vfix"></span></a>
<div class="dobMenu">
<ul>
<li><a href="javascript:void(0);"><span class="icon dobMenu_item_icon"></span></a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
</aside>
<section class="content_w">
Будь-ласка скажіть як правильно треба було прибрати PHP код.