02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Creating HTML5 Forms: Input

The first step in creating a form is enabling the users to add information into our page Leading us into our first two input tags the 'text' and the 'password' tags.

Video Transcript

00:00I can't see the mic.
00:02Could you see the mic?
00:04Nope.
00:05Isn't that cool?
00:06So we figure out a way to get our mic not in frame.
00:08All right, so what is our session about?
00:11It's all about user interaction.
00:12What does that mean?
00:13Well, actually user input.
00:15We're gonna learn how could we enable the user
00:18to add information into our website or more,
00:20well, not the full picture though
00:22because you would have to know another programming language
00:24such as PHP to be able to communicate
00:26with that information with the back end.
00:28What do you mean by that?
00:29If I have to fill out a registration?
00:33Bingo, but we're only gonna look at the HTML part of it
00:36and we're not gonna look at how do you actually do it
00:39on the back end where you would actually process
00:41the information.
00:42So we would show you how to fill out a form
00:44but it really wouldn't do anything
00:45without you knowing Otsua back end language
00:47or working with a back end developer.
00:50All right, so let's see this in action.
00:52Let's see an example.
00:53So I'm gonna go into my editor
00:55and we're gonna start first with the most basic thing.
00:57I wanna create a fake, a pseudo login, all right?
01:00So the first step that I'm gonna do,
01:02I'm gonna teach you the first item
01:04which is gonna be an input.
01:06All right, only if I'm finding a way
01:08to get here with the keyboard.
01:10All right, so input and the input itself,
01:13we're gonna set a type to it
01:14because there's a lot of different types of input.
01:16The first one we're gonna look at,
01:18oh, my text text, I was gonna say type, type text.
01:21So the first one is, its type is gonna be text
01:24and then we're gonna close that input.
01:28All right, so we have a self-enclosed input
01:30which has a type of text, has no value currently.
01:35So if we go into our browser
01:36and refresh our browser to see what we got,
01:39we'll see that we have here this nice little input element
01:41where the user could start typing information inside.
01:45All right, simple enough.
01:47So we created an input
01:48and we told what type of input that is
01:50and there's quite a few different types of inputs.
01:52Let's look at a few different options, all right?
01:55So first of all, before that,
01:57I'm gonna also add here also maybe an input
02:00and we're gonna put another type
02:01and the next type is gonna be password.
02:05All right, there's quite a lot of different types
02:07and literally the input type password
02:09is very similar to the text one.
02:11The only difference is when you type inside of it,
02:13it's gonna show you that password
02:15where you don't see the actual content.
02:17It's coming clear to me.
02:19Very cool, so we saw the basics of an input.
02:22We don't really know what to do with it yet.
02:24The next step in the next video,
02:25we'll also add a label to the inputs
02:27to make sure that users know
02:29what is each one of these elements.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!