Jump to content
php.lv forumi

HTML Kļūdas


foxc
 Share

Recommended Posts

Sveicināti. Es ieliku šeit 2 html failus.

Lūdzu vai jūs varētupateikt kur šeit man ir kāda minimālākā kļūda. ? Jo http://validator.w3.org/ saka ka man ir 23 errori:

Liels paldies

 

Index.php

 

<?
include("include/functions.php");
konektesanas();
$rezultats = mysql_query("SELECT * FROM settings");
$seti = mysql_fetch_array($rezultats);
if($seti['statuss'] == 'on'){
head();
?>
<div id="viewpreci" align="center" style="display:none;background:url(images/5px.png);height:100%;width:100%;position:absolute;">
<br /><br /><br /><br />
<div style="position:relative;top:20px;width:440px;" align="right" ><img src="images/close.png" style="cursor:pointer;" onclick="aizvert();" onmouseover="this.src = 'images/closeh.png';" onmouseout="this.src = 'images/close.png'"></div>
<div id="mazins" align="center" style="display:none;background:#ededed;height:400;width:400px;">
<iframe id="atversimpreci" src="openpreci.php?id=0" class="iframs"></iframe>
</div>
</div>
<div id="mainbg">
<div style="background-image:url(images/ontop.png);background-repeat:no-repeat;height:70px;"></div>
<div style="height:20px;"></div>
<table width="900" id="maintable" align="center">
<tr>
<td align="center">
<table width="100%">
<tr>
<td style="padding-left:40px;">
<span style="color:<?echo $seti['color'];?>;font-size:<?echo $seti['size'];?>pt;font-weight:<?echo $seti['bold'];?>;"><?echo $seti['logo'];?></span>
</td>
</tr>
<tr>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/toprnb.png) no-repeat center;height:33px;color:#fff;">
<div id="logostrip">
<b><small><a href='#'>Sākums</a></small></b>
|
<b><small><a href='#'>Kontakti</a></small></b>
|
<b><small><a href='#'>Atbalsts</a></small></b>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/middlernb.png) repeat-y center;color:#fff;">
<table width="100%" align="center" cellpadding="10">
<tr>
<?
$x = 0;
$result = mysql_query("SELECT * FROM preces");
while($row = mysql_fetch_array($result)){
?>
<td>
<div style="heigh:130px;width:100px;border:1px solid #f8f8f8;text-align:center;cursor:pointer;border:1px solid #d0d0d0;" onclick="openprece('<?=$row['id']?>')">
<div style="background:#fff;color:#000;border-bottom:1px solid #b0b0b0;"><?=$row['nosaukums'];?></div>
<div style="background:#fff;"><img src="images/preces/<?=$row['bilde'];?>.png" alt="<?=$row['alt'];?>" width="80"/></div>
<div style="background:#fff;color:#000;border-top:1px solid #b0b0b0;"><?=$row['cena'];?>Ls</div>
</div>
</td>
<?
$x = $x + 1;
if($x == '5'){
echo"</tr>";
$x = 0;
}
}
?>
</table>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/bottomrnb.png) no-repeat center;height:33px;color:#fff;">
<b><center><small><small>Copyright © SMS Veikals <?echo date("Y");?>  <script type="text/javascript" src="http://cc12874.counter.hackers.lv/cc.php"></script><noscript><div><a href="http://counter.hackers.lv/"><img src="http://cc12874.counter.hackers.lv/counter.php?uid=12874" alt="hackers counter system" /></a></div></noscript></small></small></center></b>
</td>
</tr>
</table>
<br />
<br />
</td>
</tr>
</table>
</div>
<?
foot();
?>
<?}else{
?>
<?
head();
?>
<div id="mainbg">
<div style="background-image:url(images/ontop.png);background-repeat:no-repeat;height:70px;"></div>
<div style="height:60px;"></div>
<table width="900" id="maintable" align="center">
<tr>
<td align="center">
<table width="100%">
<tr>
<td style="padding-left:40px;">
<span style="color:<?echo $seti['color'];?>;font-size:<?echo $seti['size'];?>pt;font-weight:<?echo $seti['bold'];?>;"><?echo $seti['logo'];?></span>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/toprnb.png) no-repeat center;height:33px;color:#fff;">
</td>
</tr>
<tr>
<td align="center" style="padding-left:50px;background:url(images/middlernb.png) repeat-y center;color:#fff;">
<b>Veikals uz brīdi ir slēgts!</b>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/bottomrnb.png) no-repeat center;height:33px;color:#fff;">
<b><center><small><small>Copyright © SMS Veikals <?echo date("Y");?>  <script type="text/javascript" src="http://cc12874.counter.hackers.lv/cc.php"></script><noscript><div><a href="http://counter.hackers.lv/"><img src="http://cc12874.counter.hackers.lv/counter.php?uid=12874" alt="hackers counter system" /></a></div></noscript></small></small></center></b>
</td>
</tr>
</table>
<br />
<br />
</td>
</tr>
</table>
</div>
<?
foot();
?>
<?
}?>

 

Un conctact.php

 

<?
include("include/functions.php");
konektesanas();
$rezultats = mysql_query("SELECT * FROM settings");
$seti = mysql_fetch_array($rezultats);
if($seti['statuss'] == 'on'){
head();
?>
<div id="mainbg">
<div style="background-image:url(images/ontop.png);background-repeat:no-repeat;height:70px;"></div>
<div style="height:20px;"></div>
<table width="900" id="maintable" align="center">
<tr>
<td align="center">
<table width="100%">
<tr>
<td style="padding-left:40px;">
<span style="color:<?echo $seti['color'];?>;font-size:<?echo $seti['size'];?>pt;font-weight:<?echo $seti['bold'];?>;"><?echo $seti['logo'];?></span>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/toprnb.png) no-repeat center;height:33px;color:#fff;">
<div id="logostrip">
<b><small><a href='#'>Sākums</a></small></b>
|
<b><small><a href='#'>Kontakti</a></small></b>
|
<b><small><a href='#'>Atbalsts</a></small></b>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/middlernb.png) repeat-y center;color:#fff;">
<table width="100%" align="center" cellpadding="10">
<tr>
<br>
<b>E-pasts:</b> iviits@gmail.com<br>
<b>Skype:</b> mr.iviits
<br><br>
</table>
</td>
</tr>
<tr>
<td style="padding-left:50px;background:url(images/bottomrnb.png) no-repeat center;height:33px;color:#fff;">
<b><center><small><small>Copyright © SMS Veikals <?echo date("Y");?>  <script type="text/javascript" src="http://cc12874.counter.hackers.lv/cc.php"></script><noscript><div><a href="http://counter.hackers.lv/"><img src="http://cc12874.counter.hackers.lv/counter.php?uid=12874" alt="hackers counter system" /></a></div></noscript></small></small></center></b>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<?
}?>

Link to comment
Share on other sites

Pirmkārt, garus koda gabalus jāliek paste.php.lv

Un otrkārt, kāpēc tu mums liec minēt, kur tevi r kļūdas? w3 validators pasaka konkrētu vietu, rindu un kļūdas aprakstu. Sāc ar pirmo kļūdu un rādi precīzi kur tā ir un kāda tā ir (kļūdas paziņojumu), un turpini pēc tam ar otru, utt.

Link to comment
Share on other sites

Emm ... izklausās tā, itkā kļūdu skaits būtu kaut kāds pārsteigums :

"vai jūs varētupateikt kur šeit man ir kāda minimālākā kļūda. ? "

 

Pat uzmetot aci ir redzams, ka tu:

  • jauc HTML un XHTML pierakstu.
  • neesi spējīgs izveidot lapu bez tabulām
  • nespēj saprast 3 līmeņus frontend web'am
  • izmanto prezentācijas tagus

 

Ja tu atmestu to savu fantāziju būt par "web developeri",

internets no tā tikai iegūtu.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...