Creating a web form

If you've spent any time looking at websites—and in this modern day of technology, it would be difficult not to—then you will have come across, or needed to use, the ubiquitous contact form. They pop up everywhere—you could almost take the cynical view that people use them as a means of avoiding human contact!

Nonetheless, they still serve a valid purpose. Over the next few sections, we're going to develop a simple contact form and enhance it using Less mixins to illustrate how they can be used to reduce the amount of code that we need to write.

Note

For this example, you will need to avail yourself of a copy of the code download that accompanies this book, as we will be using content from it during the exercise.

Start by opening ...

Get Learning Less.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.