Skip to main content

Input Tags in Html Forms

Html - Inputs:
Input fields are those fields which fill by users and you save them as comments. Which can be written as directly closing tag <input /> after input give a space and give a type of your own choice and use it shown in example.There are many types of input fields types such as

  1. type="text"
  2. type="password"
  3. type="checkbox"
  4. type="radio"
  5. type="submit"
  6. type="reset"
  7. type="hidden"
Html - Text Field:
Here is the two example of input fields First one is text and the second one is password. You can try making different text fields like us.

Text Field Code:
<input type="text" />
Text Field Example:
Here you see the text field simple example.

Html - Password Field:
Passwords fields are similar to the input for the text just change the type="password" and it will change to password field no text shown just dots seems as usual seems in passwords.

Password Field Code:
<input type="password" />
Password Field Example:
Here you see the password field simple example. If you want a sample password like test which will shown same like password but you want to add so use value="test" attribute it will shown same like text field.

Html - Check Boxes:
Here in the example of this we use 3 checkboxes you can use Css so you can make your forms more attractive.

Check Boxes Code:
<input type="checkbox" />
<input type="checkbox" />
<input type="checkbox" />
Check Boxes Example:
Here you see the 3 checkbox field simple example.

Html - Radio Buttons:
Here in the example we make 3 radio buttons you can use Css so you can make your forms more attractive.

Radio Buttons Code:
<input type="radio" />
<input type="radio" />
<input type="radio" />
Radio Buttons Example:
Here you see the 3 radio buttons simple example.

Html - Buttons:

Submit Button:
Setting an input type to "submit" specifies a very unique button. When pressed, the button activates the action of the form whatever that may be. Most often times this is some sort of server side scripting file or a JavaScript function.
In which we will use value attribute remember this is necessary it means that this text will show on button like value="submit".

Submit Button Code:
<input type="submit" value="Submit" /><input type="submit" value="Continue Please!" />
Submit Button Example:

Reset Button:
Setting an input type to "reset". Where this button place in a form it reset all the text field and other choices in different means empty it. Users enjoy having a "start over" button such as the reset button in case they begin filling out the wrong information in a major way.

Reset Button Code:
<input type="reset" value="Reset" />
<input type="reset" value="Start Over!" />
Reset Button Example:

These are the example of submit button and reset button which can more modified by Css.

Hidden Fields:
Hidden fields are more advance use in either server/client side script in JavaScript or PHP. You can use it same like text field type="hidden" this is fix and value is your value whatever you want to give like john, Miller etc.

Hidden Field:
<input type="hidden" value="hidden" />
<input type="hidden" value="hidden" />
Hidden Field Example:

This will not shown in this page or your page because these are hidden fields and holding some values we say it's value is hidden so it is holding hidden value.

Comments

Popular posts from this blog

Italics in Html

The italics tags use to highlight the fonts but not like bold it makes your font just like dance a step. These tags are not intended to to style your font. It's use to emphasize your fonts. Code: Italic <i>tag</i>! <em>Emphasized</em> Text! Example: Italic tag ! Emphasized Text! Code: <b>HTML</b> <i>Hyper Text Markup Language</i>  or <b>HTML</b> <em>Hyper Text Markup Language</em> Example: HTML Hyper Text Markup Language or HTML Hyper Text Markup Language Code: <p>Johnson is <b><i>DR.</i></b></p> Example: Johnson is DR.

Submit Buttons in Html Forms

Submit buttons are use to submit the forms whenever user registration is needed submit buttons always used. How to make those submit buttons? Just simple you can make submit buttons if you know the <input> tag then make it's type= submit value="some name" just like submit, send etc. Submit Buttons Code: <input type="submit" value="Submit" /><br /> <input type="submit" value="Send" /><br /> <input type="submit" value="Submit Form" /><br /> Submit Buttons Example: Submit Buttons in Action Code: <form method="post" action="mailto:pateltutor1@gmail.com" > Name:<input type="text" name="First" size="12 maxlength="12" /> Email:<input type="text" name="Last" size="24" maxlength="24" /> <input type="submit" value="Send Email" /> </form> ...

Beginner Html Lesson 2

In the previous lesson we just copy a code and paste it. In this lesson we will guide you through rest of the things what is that let's talk more. We made a webpage with something very weird for beginner don't worry go ahead. <html> : This is the essential thing for any web page and also closing tag </html>. Between these codes we add some more codes <head> </head> , <body> </body> between the body code actually body itself saying that i am body of your webpage. What Head tags containg (<head> </head>) ? Basically head tags contains following <title> <base> <link> <meta> <script> <styles>  What Body tags contains (<body> </body>) ? And a body tags contains anything like your bolded text , your content of any type.Paragraphs , Headings anything. I hope you understand.