From the course: Emmet: Fast and Efficient Web Coding

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Building forms

Building forms

From the course: Emmet: Fast and Efficient Web Coding

Start my 1-month free trial

Building forms

- [Instructor] Emmet has some great shortcuts that are particular to building out forms. There are a slew of form-related Emmet snippets. I would encourage you to start using them to build out your forms, and soon you'll find the ones that you use more often and begin to commit those to memory. To create a form field, you can simply type form, and hit Tab, and it will give you the basics of a form element. I prefer to use form:post or form:get, which will add the method attribute in addition to the action attribute. If you want to create an input tag, you can simply type input, and it will give you a basic input with a type of text. I prefer to use the shorthand method of inp, which is even better since it gives you the type, name, and id attributes already part of the expanded snippet. If you look at the commented list that I've provided here, it will give you an idea of the wide range of form elements that you can easily…

Contents