Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 12-18-2010, 05:06 PM   #1
Bronze Member
 
Join Date: Oct 2009
Posts: 45
Default Creating a form with valid html code the quickest way

Right now, I am creating a form from text that was given to me. I have to go in and enter the size, maxlength etc. My friend used Dreamweaver. A lot of extra code like labels and such were inserted which I removed. But, this is tedious. I also am running Ubuntu Linux. I no longer have Dreamweaver. But, I have Bluefish editor which is close to the same thing.

I am wondering what my quickest route to finishing this form is. I need to add tabindex, size, and maxlength to almost every entry. The form is 4 printed pages long. It won't take a long time. But, I am more concerned about the future. If we get another form to create, I don't want to take forever on that one.

What are the quickest ways to create forms that have valid html, tabindexes automatically filled in, size and length also automatically filled in?

Thanks in advance!
toolmania1 is offline   Reply With Quote


Old 12-18-2010, 07:36 PM   #2
Gold Member
 
Join Date: Nov 2009
Location: New York
Posts: 370
Default

If you are using a table-based layout I would suggest switching to CSS. Labels can come in handy not sure why you removed them.

Here is a very simple example:
Code:
<form method="post" action="#" id="your-id" enctype="multipart/form-data">
	<label>Some Label</label>
	<input type="text" name="your-name" maxlength="100" tabindex="1" />
</form>
To edit the size use CSS:
Code:
input[type=text],
input[type=password],
select,
textarea {
your-rules: here;
}
This is also a decent read on valid, accessible forms:
http://www.webstandards.org/learn/tu.../intermediate/
__________________
Submit to my Website Gallery | NY Web Design
bcee is offline   Reply With Quote
Old 12-20-2010, 04:03 PM   #3
Bronze Member
 
Join Date: Dec 2010
Posts: 44
Default

You have to consider Wufoo for this one.
SplitElement is offline   Reply With Quote
Old 12-20-2010, 09:29 PM   #4
Gold Member
 
smoovo's Avatar
 
Join Date: Oct 2010
Posts: 388
Default

Each time you build a from you are using different size, maxlength, etc... You should fill it manually. If it's the same form that you want to use, just do copy/paste to the code after first time modifying.
__________________
SMooVo - Web Design & Development
contact@smoovo.com
www.SMooVo.com
smoovo is offline   Reply With Quote
Old 12-21-2010, 02:33 PM   #5
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

Quote:
Originally Posted by bcee View Post
If you are using a table-based layout I would suggest switching to CSS. Labels can come in handy not sure why you removed them.

Here is a very simple example:
Code:
<form method="post" action="#" id="your-id" enctype="multipart/form-data">
	<label>Some Label</label>
	<input type="text" name="your-name" maxlength="100" tabindex="1" />
</form>
To edit the size use CSS:
Code:
input[type=text],
input[type=password],
select,
textarea {
your-rules: here;
}
...
I agree with Brad, use CSS to style the form. Just a thought, you can add a class to your form and then just target each tag type (if you wanted to less specific...like so:
Code:
form.login input, form.login select, form.login textarea {
--css properties--
}
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote


Reply

Tags
form, html

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:56 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.