简体   繁体   English

如何编写复杂的HTML表单?

[英]How to code html forms which are complex?

I have been given the task of coding the form below. 我已经完成了下面表格的编码任务。 I was planning to do it using tables, however my instructor told me to do it using divs , since it takes up more resources or something(I think he said it was intensive). 我本来打算用表来做,但是我的老师告诉我要用divs来做,因为它占用更多的资源或其他东西(我认为他说这很费力)。 I can do it using divs, but I think it is a waste of time because I could make the below form easily using tables(I mean quickly). 我可以使用div来做到这一点,但是我认为这是浪费时间,因为我可以使用表格轻松地制作以下表格(我的意思是很快)。

Any ideas as to how to proceed, what to use, tables or divs or some thing better ?? 关于如何进行,使用什么, div的任何想法或更好的东西?

在此处输入图片说明

As long as the form looks the way it should and validates valid HTML 4 or xhtml breeds, you're good to go unless your instructor def wants you to use divs and css to create the layout. 只要表单看起来像它应该的样子并验证有效的HTML 4或xhtml样式,除非您的讲师def希望您使用div和css来创建布局,否则您就可以开始使用。 I would recommend the latter if you really want to get proficient in modern practices using css based layouts. 如果您确实想精通使用基于CSS的布局的现代实践,我将建议使用后者。 Good luck! 祝好运!

They are not mutually exclusive. 它们不是互斥的。 You could use divs for the main panels and tables within the divs to layout controls and text. 您可以将div用于div中的主面板和表格来布局控件和文本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM