场集调整

时间:2014-05-22 11:58:41

标签: html checkbox radio-button fieldset

我想在我的网站上创建2个字段(并排),但是有些错误......它向我展示了两个字段,最后一句话没有显示给我。请帮忙

[抱歉我的英文]

我的HTML:

<table rows="1" cols="2">
  <tr>
      <td valign="top">
          <fieldset>
              <legend><font size="+1">Tovar</font></legend>
               <br>
               <input type="checkbox" name="bateria"> Použitá jednorazová baterka
               <br>
               <input type="checkbox" name="rozok"> Celozrnný rožok
               <br>
               <input type="checkbox" name="auto> Neviditeľné auto
        </fieldset>
    <td valign="top" width="50%">
      <fieldset>
        <legend><font size="+1"> Spôsob platby </font></legend>
        <br>
        <input type="radio" name="platba"> Master Card
        ...

1 个答案:

答案 0 :(得分:0)

在第三个复选框中的name属性中缺少双引号

<input type="checkbox" name="auto>

应该是

<input type="checkbox" name="auto">

完整代码:

<table rows="1" cols="2">
  <tr>
      <td valign="top">
          <fieldset>
              <legend><font size="+1">Tovar</font></legend>
               <br>
               <input type="checkbox" name="bateria"> Použitá jednorazová baterka
               <br>
               <input type="checkbox" name="rozok"> Celozrnný rožok
               <br>
               <input type="checkbox" name="auto"> Neviditeľné auto
        </fieldset>
     </td> <!-- <== Missing </td> here and you are missing a double quote in the name attribute in the third checkbox  -->
     <td valign="top" width="50%">
      <fieldset>
        <legend><font size="+1"> Spôsob platby </font></legend>
        <br>
        <input type="radio" name="platba"> Master Card
        ...