Jump to content


Photo

Estou Iniciando Em Tableless


  • Faça o login para participar
3 replies to this topic

#1 Ch4p0L1N

Ch4p0L1N

    Normal

  • Usuários
  • 116 posts
  • Sexo:Masculino

Posted 27/04/2007, 18:47

http://validator.w3....;doctype=Inline

ta apontando 8 erros e eu queria saber quais as causas deles

aih vai o codigo:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Estoq Car</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>
<div id="topo">
	<div id="logo"><img src="img/logo.jpg" alt="" width="205" height="78" /></div>
  <div id="menu_topo">
  <div id="title_buscar">
    <div>
      <div>BUSCAR</div>
    </div>
  </div>
  <div id="campo_busca">
    <form id="form1" method="post" action="">
      <label>
      <input name="textfield" type="text" id="estilo_input_busca" size="16" />
      </label>
        <select name="menu1" id="estilo_input_busca" onchange="MM_jumpMenu('parent',this,0)">
          <option>Todo o Site</option>
        </select>
        <label>
        <input name="Submit" type="submit" id="estilo_input_busca" value="OK" />
        </label>
    </form>
    </div>
	<div id="menu_links"><img src="img/link_topo.jpg" alt="" width="298" height="24" border="0" usemap="Map" />
<map name="Map" id="Map">
  <area shape="rect" coords="4,5,97,20" href="#" alt="" />
<area shape="rect" coords="100,6,188,20" href="#" alt="" /><area shape="rect" coords="196,6,292,20" href="#" alt="" /></map></div>
  </div>
</div>
<div id="banner"><img src="img/banner_cybershot.jpg" alt="" width="781" height="109" /></div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Estoq Car</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>
<div id="topo">
	<div id="logo"><img src="img/logo.jpg" alt="" width="205" height="78" /></div>
  <div id="menu_topo">
  <div id="title_buscar">
    <div>
      <div>BUSCAR</div>
    </div>
  </div>
  <div id="campo_busca">
    <form id="form1" method="post" action="">
      <label>
      <input name="textfield" type="text" id="estilo_input_busca" size="16" />
      </label>
        <select name="menu1" id="estilo_input_busca" onchange="MM_jumpMenu('parent',this,0)">
          <option>Todo o Site</option>
        </select>
        <label>
        <input name="Submit" type="submit" id="estilo_input_busca" value="OK" />
        </label>
    </form>
    </div>
	<div id="menu_links"><img src="img/link_topo.jpg" alt="" width="298" height="24" border="0" usemap="Map" />
<map name="Map" id="Map">
  <area shape="rect" coords="4,5,97,20" href="#" alt="" />
<area shape="rect" coords="100,6,188,20" href="#" alt="" /><area shape="rect" coords="196,6,292,20" href="#" alt="" /></map></div>
  </div>
</div>
<div id="banner"><img src="img/banner_cybershot.jpg" alt="" width="781" height="109" /></div>
</body>
</html>

agradeço se alguem puder me ajudar

#2 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 27/04/2007, 21:25

Bom, hehehe, não sei se você viu... mas os motivos dos erros estão logo abaixo na página que você passou. De qualquer forma, na ordem:

1- Line 28, column 12: document type does not allow element "label" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag.

Você colocou um "label" diretamente dentro de um "form". Coloque-o dentro de um "p" ou "div".

2- Line 31, column 33: ID "estilo_input_busca" already defined .

Ids não podem ser repetidos num mesmo documento.

4, 5, 6- Idem ao 1.

8- Line 37, column 10: end tag for "form" which is not finished .

Corrigir os problemas acima deve resolver esse aqui.

9- Line 39, column 89: there is no attribute "border" .

Uma imagem não possui o atributo border (use CSS).

10- Line 40, column 10: there is no attribute "name" .

Uma mapa não possui o atributo name. Abolir esta tag é a melhor opção na maioria dos casos.
Klaus Paiva
Conheça também: Taperás

#3 Ch4p0L1N

Ch4p0L1N

    Normal

  • Usuários
  • 116 posts
  • Sexo:Masculino

Posted 28/04/2007, 18:52

bom, corrigi a maioria dos erros, agora ta dando só 4

http://validator.w3....;doctype=Inline
nao sei como resolver, qual a forma correta de eu fazer esse formulario pra nao dar esses erros? nao to entendendo oq ta errado, pode me ajudar?

ja fiz 2 coisas diferentes que fez o w3c validar o site mas entortou o layout

Edição feita por: Ch4p0L1N, 28/04/2007, 19:22.


#4 Evitark

Evitark

    Normal

  • Usuários
  • 67 posts
  • Sexo:Masculino

Posted 30/04/2007, 10:57

Tentou colocar os campos do formulário dentro de um <p>?




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq