Make your forms beautiful with CSS
In detail
Using semantic HTML for your forms
Semantic HTML is all the rage, and for good reason. The code is easier to understand, more search engine-friendly and typically easier to maintain
Semantics: the science or study of structure and meaning. HTML started off with the intention that documents (pages) would be structured according to a strict semantic scheme. h1 tags existed to contain the most important information or heading on a page, while h6 tags were there for the least important heading. <p> tags only contained paragraph information. Each HTML page had a definitive structure and hierarchy, which was self-described by the mark-up the author used in its creation. This was all well and good, but as the internet exploded in popularity, authors of web pages wanted to push the boundaries of design and, given the limited layout options available within the language, clever workarounds were developed to achieve sophisticated designs.
This was fantastic for the aesthetics of the websites being created, but awful from a semantic point of view. Tags lost much of their association with the intended purpose. Tables were being nested ten layers deep, and the amount of code being used per page expanded exponentially. This had the side effect of making it more difficult for search engines to determine the relative importance of content, and making it challenging for people with disabilities to navigate and access page content.
Thankfully, with the advent of CSS, the wealth of design and layout tools available enables us to return to the semantic web. The HTML code we’ve created for the tutorial here is an example of a semantic approach to a form. We have grouped similar fields within the form into fieldsets. Rather than using a table to achieve a nice layout, we have made use of labels explicitly associated with specific input fields. To help define the elements, we’ve wrapped each label and form field inside a list element (after all, a form is really a list of information required). Semantic HTML separates the structure of the document from the appearance, while CSS is used to create the visual look and feel by attaching to ID, class or HTML tag hooks.


Thanks a lot..
I definitely need to work on this. Thanks!
yeah… I like it. Thanks
its wonderful share and its really helpful for new comer CSS developer
Thanks for the tutorial! There are not very many good examples of stying forms on the net.
[...] Make your forms beautiful with CSS | Web Designer – Defining the internet through beautiful design (tags: design css forms beautify) [...]
Try this Javascript refinement on the form… it works out better.
[...] Make your forms beautiful with CSS | Web Designer – Defining the internet through beautiful design Great read on Forms and CSS (tags: css forms webdesign form html style webdev design) [...]
[...] Make your forms beautiful with CSS | Web Designer – Defining the internet through beautiful design – Tutorial wie Online-Formulare mit CSS noch schöner gemacht werden können. [...]
what a great course . Thanks a lot !
[...] Make your forms beautiful with CSS | Web Designer – Defining the internet through beautiful designwebdesignermag.co.uk [...]
谢谢 ,写的很好
[...] Make your forms beautiful with CSS [...]
[...] Make your forms beautiful with CSS [...]
[...] Make your forms beautiful with CSS [...]
[...] beautiful forms with cascading style sheets [download tutorial [...]
[...] beautiful forms with cascading style sheets [download tutorial [...]
Thank you for your input.
This was a great tutorial, I did pick up 1 or 2 new techniques that I’ll use in my next form. I do however have a question, how would you go about creating a Li with 2 text boxes within it i.e. Lets say you want to have title and first name next to each other or if the space for the fieldset requires a 2 or 3 column layout?
A tutorial showing that would be great
Good tutorial. The form provided me with new ideas for my next form.
Thanks again
Nice
Cool, Thanks for input
[...] Make your forms beautiful with CSS | Formulare sind meist ein wichtiger Bestandteil einer Website. Und damit auch das Aussehen der Formulare stimmt, gibt es CSS! [...]
[...] Make your forms beautiful with CSS [...]
Thanks. Nice tutorial.
[...] 16. Make your forms beautiful with CSS [...]
[...] 16. Make your forms beautiful with CSS [...]
One of the best form examples I’ve seen in a while. Good job!
[...] 15. Make your forms beautiful with CSS [...]
[...] 15. Make your forms beautiful with CSS [...]
me too. like this one
Thanks lot!
[...] 16. Make your forms beautiful with CSS [...]
very nice..
Good guide, picked up a few ideas. Many thanks! Ted
Nice helpful stuff. Thanks
[...] 3. Make your forms beautiful with CSS [...]
Good guide, picked up a few ideas. Many thanks! Ted
It is so important to keep on top of the latest techniques, articles like this are great for improving skills and always giving the end user a good experience when visiting your website. Thank you
[...] 16. Make your forms beautiful with CSS [...]
What's your opinion?