Passwords – Web Development


Okay. So here we are in our Editor again, and this is the basic HTML file we were editing before and that we were opening in our browser. We’re going to go back to this a little bit so we can learn some new form elements. So the first thing I’m going to do is remove the Action parameter from the Form element so that we can submit the form to itself and we’ll see the “q” parameter in the URL again. This makes it easy to demonstrate what’s going on, without having to go back to our app Server and all of that stuff. So I removed that; let’s go to our browser and let’s give this form a test. So I reload the page, I type in: “some junk” here, which it autocompletes for me. I click Submit, and we see “some junk” in the URL: q=some+junk. Okay. Let’s go back to our Editor. So here we are in our Editor. One thing that I’m leaving off is the Type parameter on this first input. So let’s go ahead and add that: type=”text”– type=”text” is the default type of an input parameter. I didn’t include it originally because I didn’t want to spend a whole lot of time talking about that, at the time. But in reality, we want to be a little bit more specific with our types, especially now that we’re going to learn some new types. So if I change that to type “text” the behavior won’t change in the browser. And the first thing we’re going to do is learn a new type. So instead of being “text” we’re going to change this to “password”. The “password” type is useful for entering passwords in a text box. Okay–so here we are in our browser. Now when we type some text into the box here, it appears as dots instead of the actual text. So for the next quiz, what I’d like you to do is tell me what happens when I click the Submit button. You can try this out on your own, at home.

Be the first to comment

Leave a Reply

Your email address will not be published.


*