English 中文(简体)
在一张桌子上打上一个标记是否有效?
原标题:Is it valid to have a form tag inside a table tag?
  • 时间:2010-09-01 21:52:16
  •  标签:
  • html

是否在桌旁打上一个标记? 某些文件链接将受到赞赏。

最佳回答

http://dev.w3.org/html5/html-author/#the-td-element” rel=“noreferer”> ;<form>在<内有效;td> content。 可在http://validator.w3.org查询。 选择“通过直接投入确定日期”,然后沿用以下超文本:

<table>
  <tbody>
    <tr>
      <td><form action="test"><div><input type="text"></div></form></td>
    </tr>
  </tbody>
</table>

在“More Options”下,选定“Validate document Fra”。 这样,你就可以在不为其写整页的字面上检查一个超文本。 我用它来检查超文本碎片。

References:

问题回答

在<代码>(>表(在行文之外)内贴上<条码>的标签,有时被用来保持形式边缘,以干扰布局。 这类工程,但根据超文本标准,其无效。

而使用CSS将差额从form tag中删除。 例:

<form ... style="margin:0">

或者更喜欢把它放在你的风格上。

您可在拖拉内打出一个表格,但通常为多数目的罚款,通过在桌旁打一个表格。

<form action="#">
    <table>
        <thead>
            <tr>
                <th>list</th>
                <th>button</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><input type="text" required="required"></td>
                <td><button type="submit" id="saveRow">Save me</button></td>
            </tr>
        </tbody>


    </table>

</form>

It is valid to put a <form> tag inside a <table> tag.

<table>
   <tr>
   <td>
   <form name="sample" action="test.php">
<div>
   <input type="submit" value="submit" >
</div>
   </form>
</td>
</tr>
</table>           

Editing note: tags Packed as Code so that the content is as used, but the response should specified that while the form is within the table, it can be a direct hexachloro: it must be a child of a cell.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签