Thursday, May 21, 2020

Forms in HTML

This program was written and given to us by my friend Sir Ernel to show how to use forms in HTML.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.unlimitedbooksph.com/


Program Listing

<!DOCTYPE html>
<html>
<head>
<style> 

<!-- This is for Padded field -->

input[type=text] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
}

<!-- This is for Bordered Field -->

input[type=text1] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
border: 4px solid steelblue;
border-radius: 4px;
}


<!-- This is for image Field -->

input[type=text2] {
width: 100%;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
font-size: 16px;
background-color: white;
background-image: url
('sicon.png');
background-position: 10px 10px; 
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
}


<!-- This is for Animated Field -->


input[type=text3] {
    
width: 130px;
box-sizing: border-box;
border: 3px solid steelblue;
border-radius: 4px;
font-size: 16px;
background-color: white;
background-image: url('sicon.png');
background-position: 10px 10px; 
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
-webkit-transition: width 0.4s 
ease-in-out;
transition: width 0.4s ease-in-out;
}

input[type=text3]:focus {
    width: 60%;
}

</style>
</head>
<body>
<h3>Padded Text fields:</h3>

<form>
<label for="fname">First Name
</label>
<input type="text" id="fname" 
name="fname">
<label for="fname">Last Name</label>
<input type="text" id="lname" 
name="lname">

</form>

<h3> Bordered Text Fields</h3>

<form> 

<label for="fname">First Name</label>
<input type="text1" id="fname" 
name="fname">
<label for="lname">Last Name</label>
<input type="text1" id="lname" 
name="lname">

</form>

<h3>Text Fields with icon/image </h3>

<form>

<input type="text2" name="search" 
placeholder="Search..">

</form>

<h3> Animated Text Field </h3>


<form>

  <input type="text3" name="search" 
placeholder="Search..">

</form>
</body>
</html>



No comments:

Post a Comment