css - What would be the correct way to insert a form in HTML, in such a way that it's field labels are equally distanced from the input field? -
previously have been using <table>
tag in order structure form in such way nice formatted form each label , field on line eachother following:
email: [############] password: [############]
however there's semantic problem here, form not table data. table graphically suiting, not on semantic level.
what proper way structure form it's graphically pleasing semantically correct in terms of data type?
this a list apart article that.
it uses semantically correct tags, , css styling build table-less form stable margins. in nutshell, uses label
tags display text, , gives them fixed widths make form fields start @ same horizontal position.
for solution flexible dimensions, see fluid input elements.
Comments
Post a Comment