Ga naar inhoud

XML-parsefout


anoniem

Aanbevolen berichten

Ik had in de discussie html/xhtml eens de link van Gooly bekeken. Had dus via php het doctype application/xhtml+xml. Nu krijg ik volgende error: XML-parsefout: niet-overeenkomende tag. Verwacht: </div>. Locatie: http://localhost/test/content.php Regelnummer 148, kolom 3: </body> --^ Dit is mijn code... [code:1:978126e864] <?php header('Content-type: application/xhtml+xml'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=ISO-8859-1" /> <title>image gallery</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ // Equal heights var height = $('#page').css('height'); $('#spotlight').css('height',height); }); </script> <style type="text/css"> *{ margin:0px; padding:0px; } html{ background:url('bg_new.png') repeat-x #202020; } #wrapper{ width:1100px; margin:0 auto; } #header{ width:100%; height:200px; } #header img{ margin-left:20px; height:200px; } #logo{ width:450px; height:200px; float:left; } #menu{ font-family:Palatino Linotype Vet; font-weight:bolder; font-size:xx-large; float:left; height:200px; } #menu ul{ margin-left:25px; margin-top:132px; height:50px; } .menu_li{ margin-left:25px; float:left; width:150px; list-style:none; } #li_first{ margin-left:0px; } #menu a{ padding:10px 15px 24px 10px ; text-decoration:none; color:#202020; } #menu a:hover{ background:#303030; } #content{ width:1100px; margin:50px auto 25px auto; height:600px; } #spotlight{ width:250px; float:left; background:#f2f2f2; margin-right:50px; } #page{ width:800px; float:left; background:#f2f2f2; height:600px; } #spotlight .title{ text-shadow: 0 1px 0 #f4f4f4; font-family:Palatino Linotype; height:50px; width:230px; margin:0 auto; text-align:center; font-size:xx-large; font-weight:bolder; } #spotlight .border{ margin-top:6px; width:230px; height:1px; background:url('border.png'); } #title1,#title2{ font-family:"Neogrey Regular"; margin:0; padding:0; } #title1{ font-size:55px; margin-top:80px; } #titlespan1 { color:#66CD00; } #titlespan2 { color:#FFCC11; } #title2{ font-size:29px; color:#B3EE3A; } </style> </head> <body> <div id="wrapper"> <div id="header"> <div id="logo"> <div id="title1"><span id="titlespan1">Mike</span><span id="titlespan2">Neyens</span></div> <div id="title2">Photography</div> </div> <div id="menu"> <ul id="menu_ul"> <li class="menu_li" id="li_first"><a href="newstyle.html">Home</a></li> <li class="menu_li"><a href="photos.html">Photos</a></li> <li class="menu_li"><a href="contact.html">Contact</a></li> </ul> </div> </div> <div id="content"> <div id="spotlight"> <div class="title">Spotlight<div class="border"></div></div> </div> <div id="page"><div class="title">Page<div class="border"></div> </div> </div> </div> </body> </html> [/code:1:978126e864][/code]
Link naar reactie

Om een reactie te plaatsen, moet je eerst inloggen

Gast
Reageer op dit topic

×   Geplakt als verrijkte tekst.   Herstel opmaak

  Er zijn maximaal 75 emoji toegestaan.

×   Je link werd automatisch ingevoegd.   Tonen als normale link

×   Je vorige inhoud werd hersteld.   Leeg de tekstverwerker

×   Je kunt afbeeldingen niet direct plakken. Upload of voeg afbeeldingen vanaf een URL in

×
×
  • Nieuwe aanmaken...