This lesson will walk you through setting up the template for your template-driven form. For this demonstration, I'm going to create a simple user registration form. First, I'll generate a component to hold the form and then add that component to the root, and then in this root template, I'll delete all this starter code and add in that form component. Now, when creating template-driven forms, you need to import the FormsModule. So I'll do that now in the root application module. This FormsModule includes all the Angular directives you'll need for building, binding and validating that template-driven form. NgModel and NgForm are two of the directives that you'll be using that are part of this module. NgModel is the directive used for two way binding and NgForm will handle form submission as well as provide validation information. So now, with that imported, I can start building out the template for the form. So opening up that form component template. This form will include fields for a first and last name and email address, a password, a phone number and then the option to sign up for a mailing list. The first name, email and password fields will be required, but then the other fields will be left optional. So here, I'll first create a form, and then here, I'll add the field for the first name and here for the input fields, you'll want to include both the ID and name attributes. The ID is used to match up the input with the label and Angular will need the name attribute for the NgModel and NgForm directives later on. I'm also going to quickly style this form-group class with some margin so that these fields aren't all right on top of each other and then back in the component template, I'm going to repeat this code for the rest of the form fields, and for this email field here, I made sure that the input type is also email so that the required validation later on will work correctly for that field, and here for the email field, you wanna make sure that the input type is set to reflect that it's an email address so that the validation works properly. I'm also gonna do the same for the next two fields, the password and telephone number, and then this form will also need a submit button and then viewing this in the browser, all those fields are set up and displaying here. So that's all for this lesson on setting up the template and the next lesson we'll show you how to bind this template using NgModel.