Form : Coming Fast..

Form is one of the significant method for data collection. If you want to make forms for any society or for some other work, then you are at right place. 
In this blog post we will learn to make a simple but useful form. 
First of all: Open any text editor like notepad, then save the file as "form.html".....
Now start coding..
Write the below mentioned code into the form.html file using a test editor.

Code: (HTML)

<!DOCTYPE html>
<html>
 <head>
  <title>Form</title>
  <link rel="stylesheet" href="style.css" type="text/css" >
 </head>

<body>

 
 <div id="container">
  <h1>Fill In The Form..</h1>
 <div id="formBody">
  <form>
   Name:&nbsp;<input type="text" placeholder="enter your name.."><br><br>
   Class:&nbsp;&nbsp;<input type="text" placeholder="enter your class e.g. BESE-7"><br><br>
   Batch:&nbsp;<input type="number" placeholder="e.g. 2016"><br><br>
   CMS ID:&nbsp;<input type="number" placeholder="e.g. 184055."><br><br>
   School:&nbsp;<input type="text" placeholder="e.g. SEECS"><br><br>
   Date Of Birth:&nbsp;<input type="date"><br><br>
   <input type="submit" >
   

  
                     </form>
 </div>
 <div id="formFooter">
  &copy; form2018htmlwebEngineering
 </div>
 
 </div>
 

</body>

</html>

Now open another text editor file, save it as "style.css".
 
You might have observed   <link rel="stylesheet" href="style.css" type="text/css" >

in the html file, actually it is a link to "style.css". 

Style.css is a cascading style sheet and is used to add
 
styling to your simple web page.


Write the below mentioned code in "style.css". Don't forget to 

Save it.

CODE: (CSS)


body{
 background-image: url("https://cdn.pixabay.com/photo/2016/10/17/14/31/background-1747784_960_720.jpg");


}
h1{
 padding-left: 15%;
 background: linear-gradient(to right, rgba(149,149,149,1) 0%,rgba(13,13,13,1) 0%,rgba(1,1,1,1) 50%,rgba(10,10,10,1) 64%,rgba(56,56,56,1) 87%,rgba(78,78,78,1) 100%,rgba(27,27,27,1) 100%);
 color: white;
 width: 50%:
}

#container{

 font-family: helvica;
 font-size: 20px;
 font-weight: Bold;
 width: 50%;
 margin-left: 25%;
 background: linear-gradient(to bottom, rgba(147,206,222,1) 0%,rgba(117,189,209,1) 41%,rgba(73,165,191,1) 100%);
 
}
input{
 
 width: 100%;
}

#formBody{
 
 
 background: linear-gradient(to bottom, rgba(222,239,255,1) 0%,rgba(152,190,222,1) 100%);
 margin: 20px;
 align-content: center;
 padding: 20px;
}

#formFooter{
 text-align:left
 font-size: 10px;
 background: black;
 color: white;
 

}


OUTPUT:


Comments

Popular posts from this blog

Relational Data Model

An Interview with Pakistani Data Scientist : Dr. Zeeshan Ul Hassan Usmani

Data Engineering Tools

Applications of Data Engineering

Five People to Follow on Social Media

Data Science : The Fusion Reaction

Elasticsearch and Redis : NoSql

Web Scraping : Urdu News