Hallo
der Validator bringt mir diesen Fehler.
Line 12, Column 62: document type does not allow element "a" here; assuming missing "body" start-tag
Dies ist mein Code.
Was mache ich denn falsch ?
Muss man bei einem php Programm welches include wird einen <head>angeben?
Danke
der Validator bringt mir diesen Fehler.
Line 12, Column 62: document type does not allow element "a" here; assuming missing "body" start-tag
HTML:
<a class="myButtons" href="index.php" title="zur Hauptseite" >Home</a>
Dies ist mein Code.
HTML:
<!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" lang="de" xml:lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>xxx </title>
<link href="css/bildschirm-css-" rel="stylesheet" type="text/css" media="screen" />
<link rel="icon" type="image/gif" href=".gif" />
</head>
<?php
$index ="myButtons";
$service ="myButtons";
$referenz ="myButtons";
$kontakt ="myButtons";
$weg ="myButtons";
$links ="myButtons";
$impress ="myButtons";
$menuLinkid = basename($_SERVER['PHP_SELF'],".php");
if($menuLinkid=="index")
{
$index='myActiveButton';
}
elseif($menuLinkid=="service")
{
$service = 'myActiveButton';
}
elseif($menuLinkid=="referenz")
{
$referenz = 'myActiveButton';
}
elseif($menuLinkid=="kontakt")
{
$kontakt = 'myActiveButton';
}
elseif($menuLinkid=="weg")
{
$weg = 'myActiveButton';
}
elseif($menuLinkid=="links")
{
$links = 'myActiveButton';
}
elseif($menuLinkid=="impress")
{
$impress = 'myActiveButton';
}
?>
<a class="<?php echo $index;?>" href="index.php" title="zur Hauptseite" >Home</a>
<a class="<?php echo $service;?>" href="service.php" title="unser Service für Sie" >Service</a>
<a class="<?php echo $referenz;?>"href="referenz.php" title="zur Referenzliste" >Referenz</a>
<a class="<?php echo $kontakt;?>"href="kontakt.php" title="Kontakt zu uns" >Kontakt</a>
<a class="<?php echo $weg;?>"href="weg.php" title="Wegbeschreibung" >Weg</a>
<a class="<?php echo $links;?>"href="links.php" title="Partner-Linkliste" >Linkliste</a>
<a class="<?php echo $impress;?>"href="impress.php" title="Impressum" >Impressum</a>
</body>
</html>
Was mache ich denn falsch ?
Muss man bei einem php Programm welches include wird einen <head>angeben?
Danke