Pages

Friday, March 30, 2018

How to upload image without page refresh or submit button

Introduction:

In this tutorial learn how to make a stunning looking file upload without any page refresh or even it doesn't need button click, just choose a file and it will be uploaded.

Demo:


Step to Follow : 


Downlaod The JQuery File and paste it to your project folder create files for below codes, and you are all ok.

upload_image.php


<!doctype html>
<html>
<style>

 *{margin:0px; padding:0px;}
 #container{width:20%; padding:2%; box-shadow:0px 0px 10px #888888; margin:10px auto;}
 #image1{width:96% ; padding:2%; border:1px dashed green;}
 #header{background:#405570; color:white;text-align:center; padding:2%;}
 #view-image{border-radius:5px; overflow:hidden;}
 #preview-image{padding:1%; border:1px solid #efefef; height:200px;}
</style>

<body>

<div id="container"> 
<form method="post" action="upload_file.php" enctype="multipart/form-data">
<input type="file" id="image" />
</form>
<br>

<div id="view-image">
<h3 id="header">Preview Image</h3>
<div id="preview-image">
image will show right here
</div>
</div>

</div>

<script src="jquery-3.3.1.min.js"></script>
<script>
$(document).ready(function(){
$('#image').change(function(){ 
   var data = new FormData() ; 
   data.append('file', $( '#image' )[0].files[0]) ; 
   $.ajax({
  url: 'upload_file.php',
  type: 'POST',
  data: data,
  processData: false,
  contentType: false,
  beforeSend: function(){
  $('#preview-image').html('Loading...');
  },
  success: function(data){ 
   // alert(data);   
                   $('#preview-image').html('<img  src="'+data+'" style="width:100%"/>');  
 
}
   });
   return false;
});
});

</script>
     
</body>
</html>









upload_file.php



<?php

      if(isset($_FILES['file'])){

  $file = $_FILES['file'] ;

  $error = $file['error'];
  $name= $file['name'] ;
  $tmp_name = $file['tmp_name'] ;
  $size = $file['size'] ;

  if($error == 0){
  //type restriction
  $ext =  explode(".", $name) ;
  $ext = end($ext) ;
  $ext = strtolower($ext ) ;
  $allow = array("jpg", "png") ;

  if(in_array($ext,  $allow)){
 
    // check file size
    if($size <= 2000000){

//check wether file uploaded or not
if(move_uploaded_file( $tmp_name, $name)){

echo $name ;
}else{
echo 'file not uploaded' ;
}

}else{
echo 'File is too big' ;
}


  }else{
  echo 'Type not allowed';
  }





  }else{

  echo 'error in file';
  }




  }

 ?>

Thursday, March 29, 2018

add background image on full width and height of a screen html and css

Watch Tutorial


<!doctype html>
<!-- Powered By Computer Master -->
<html>

<style>
*{ 
margin:0px; 
padding:0px; 
}
body, html{
height:100%;
}
#bgimg{
<!-- please add adress of your image you want to show down here -->
     background-image: url("image.jpg");
height:100%; 
background-position:center;
background-size:cover;  
}
</style>

<body>

<div id="bgimg"></div>
 
</body>


</html> 

Wednesday, March 28, 2018

How to add a text inside a div


How to add a text inside a div JQuery, for this project make sure to add JQuery file.

Demo:







<!doctype html>
<html>
<!-- copyright 2018-2030 -->
<title>Powered by Computer Master</title>

<body>
          
<button id="show_more">Show more</button>
<!-- the text will show in this div -->
<div id="result"></div>

<script src="jquery-3.3.1.min.js"></script>
<script>
$('document').ready(function(){
     
$("#show_more").click(function(){
$('#result').append("i am new text<br>") ;
})


});

</script>
   
</body>
</html>

Tuesday, March 27, 2018

What is future ad pro /futureadpro.com

Definition:

Future Ad Pro is an online Social platform where people around the world without any knowledge, investment, buying or selling earn money.


How it works:

In Future Ad Pro They provide you some websites where you have to click on their banners ten/10 times a day and they will credit your account after every 15 minutes.


How to start: 



  1.  Click here to go to futureadpro.com
  2.  Register yourself for free.
  3. Choose how many $50 advertising packages or ad packs you would like to own, the more you chose the higher you will be earning.
  4. Click on their advertising banner ten times a day.
  5.  And they will credited you with their new income every 15 minutes later.

Monday, March 26, 2018

find your post office code in pakistan

In this page i am going to show you, how to find your post office code for free. If you are in Pakistan you may find your post office code here very easy. 2 steps and you are done.

Go to the official site of Pakistan Post Office.




1. You will directed to this page. 





2. Type here your post office name such, the one you type in your NIC, CV or Domicile etc.


how to create a website/webpage in html notepad in urdu/hindi

Source Codes for a stunning looking web page. copy it and past it to your own page and view it on any brower

onlinewebsite.html

   <html>

<style>
*{padding :0px ;
   margin : 0px ;}

body{background-color:#C2CDD1;}
#mainPage{ border:2px solid black;overflow:hidden; width:988px ; margin :24px auto ;background:#87CC99;}
#header{border:1px solid #485e49;width:100%;height:150px;background-color:#016E37;  }

#menu{background:#87CC99;  }
.menu{background:#485e49;margin:0px ;height : 50px ;border:2px solid
white;border-radius: 10px;
 overflow:hidden;}
.menu li{float:left ; border-right:1px solid white ; height : 50px}
.menu li a{font-size:30px ; color:white; text-decoration:none;
 margin:30px;55}
 .menu .submenu{display:none ;position:absolute;}
 .menu li:hover .submenu{display:block ; }

 .submenu li{ background:green;border:1px solid white;
 float:none;width: 170px ;
 list-style-type:none;position:relative ;top : 18px; }

 .submenu1{display:none;position:absolute ; left : 170px ; top:-20px}
 .submenu li:hover .submenu1{display:block;}

 #right-col{float : right ;}
 #right-col ul{background:#F5E58E; margin:0px; width: 150; }
 #right-col ul li{border : 1px solid white;list-style-type:none;
 margin-left: -40px ;} 
 
 #right-col ul li a{font-size : 30px ; text-decoration : none;
margin : 30px ;}



 #left-col {float:left}
 #left-col ul{background:#F5E58E; margin:0px; width: 150; }
 #left-col ul li{border : 1px solid white;list-style-type:none;
 margin-left: -40px ;}


#left-col ul li a{font-size : 30px ; text-decoration : none;
margin : 30px ;}
 
#writing{float:left ;width:605;background-color:#DEDBB8;border : 1px solid white;
  }

 

h1{color:#BCF5D1; font-size:44px; text-shadow:2px 1px white;}
h2{color:blue;font-size:22px;border-bottom:1px solid black;}

 </style>
<body>
 <div id="mainPage"> 
 <div id="header">
 <h1 align="center">Computer Master website</h1>
 <!--end of header-->
 <!-- menu color : #485e49-->
</div>
 <div id ="menu" >

 <ul class = "menu">
 <li><a href ="#" >home</a></li>
 <li><a href ="#" >beginner</a></li>
 <li><a href ="#" >intermediate</a>
 <ul class="submenu" ><li>beginner</li>
 <li>beginner</li>
 <li>beginner
 <ul class="submenu1" ><li>beginner</li>
 <li>beginner</li>
 <li>beginner</li>
 <li>beginner</li></ul></li>
 <li>beginner</li></ul>

 </li>
 <li><a href ="#" >contact</a></li>
 <li><a href ="about.html" >about us</a></li>

 </ul>

 <!-- end of menu-->
 </div>

 <div id ="left-col">
 
 <ul>
  <li><span style="font-size: 43px;padding: 30;color:blue;">Join us</span></li>
 <li><a href ="#">youtube</a></li>
 <li><a href ="#">youtube</a></li>
 <li><a href ="#">youtube</a></li>
 <li><a href ="#">youtube</a></li>


 </ul>
  <!-- end of left-col -->
 </div>
 
 
 <div id ="writing">
 <h2 align="center">Abdul wahab</h2>

 <p>my name is abdul wahaba and i belong to pakistan.i am the student
 of computer science.and if you have any problem related to java or html programming
 so you can contact me throw my page contact ok</p>

<p>my name is abdul wahaba and i belong to pakistan.i am the student
 of computer science.and if you have any problem related to java or html programming
 so you can contact me throw my page contact ok</p>

<p>my name is abdul wahaba and i belong to pakistan.i am the student
 of computer science.and if you have any problem related to java or html programming
 so you can contact me throw my page contact ok</p>

<p>my name is abdul wahaba and i belong to pakistan.i am the student
 of computer science.and if you have any problem related to java or html programming
 so you can contact me throw my page contact ok</p>

<p>my name is abdul wahaba and i belong to pakistan.i am the student
 of computer science.and if you have any problem related to java or html programming
 so you can contact me throw my page contact ok</p>

<p>my name is abdul wahaba and i belong to pakistan.i am the student
 of computer science.and if you have any problem related to java or html programming
 so you can contact me throw my page contact ok</p>
 <p align="center"><img src="website.jpg" width="400px" height="300px"></p>
 <!--end of writing-->
 </div>
 <div id ="right-col">
 
 <ul>
  <li><span style="font-size: 43px;padding: 30;color:blue;">Join us</span></li>
 <li><a href ="#">youtube</a></li>
 <li><a href ="#">youtube</a></li>
 <li><a href ="#">youtube</a></li>
 <li><a href ="#">youtube</a></li>


 </ul>
  <!-- end of left-col -->
 </div>
 <!--end of mainPage-->
 </div>
</body>

</html>





about.html

<html>

<title>about me</title>
<body>

<a href ="onlinewebsite.html">Home</a>

This is about me

</body>


</html>

Sunday, March 25, 2018

How to match password without page refresh or button clicked

In this tutorial i am going to show how to match two passwords without refreshing/ reloading the entire page and even without clicking a button.


Demo:




Installation Proccess:


1: Download Jquery file and 
2: create files given below and paste the code right to them.

File 1.
password match.html

<!doctype html>
<!-- Powered by Computer Master copyright 2018-2030 -->
<html>


<body>
     Password:<br>
<input type="text" id="password1" />
<br><br>
Confirm Password:<br>
<input type="text" id="password2" onfocusout="password_match()" />
 
<!-- The result will show in this div -->
     <div id="show-result">
</div>
      
  <script src="jquery-3.3.1.min.js"></script>
  <script>
  function password_match(){
  var password1 = document.getElementById('password1').value ; 
  var password2 = document.getElementById('password2').value ; 
  
   $.post("check.php", {
  pass1: password1, pass2: password2 
    },
function(data, status){
document.getElementById('show-result').innerHTML = data ; 
}
) ; 
   }
  </script>
  
</body>
</html>



File 2:
check.php

<?PHP

   if(isset($_POST['pass1'])){
   
   if($_POST['pass1'] == $_POST['pass2']){
   echo '<p style="color:green">password matched</p>' ;
   }else{
   echo '<p style="color:red">passwords do not matched</p>'; 
   }
   
    }


 ?>

Friday, March 23, 2018

How to suggest values from database HTML/CSS

In this tutorial you'll learn how to suggest values from database to an input field.

Demo:


Step 1. Download the JQuery file first.
Step 2. Copy the codes given below and past it to your files.

database_suggesion.php

<!doctype html>

<!-- Powered by Computer Master -->


<html>
<title>Computer Master Database Suggestion</title>


<body>

<h2> Suggest users from database</h2>

<!-- Input field for entry -->
<input list="user" id="user_name" onkeyup="suggest_user()" />

<!-- database entries will show in this datalist -->
<datalist id="user">
</datalist>

<script src="jquery-3.3.1.min.js"></script>
<script>

function suggest_user(){
var user_name = document.getElementById('user_name').value;
/* This function send data to check.php file */
    $.post("check.php",
{
user: user_name
},

/* This function recieve data from check.php file */
function(data, status){
document.getElementById('user').innerHTML = data ;
}
);

}

</script>



</body>

</html>

check.php

<?php
 
/* Configure this to your own database */
    $con = mysqli_connect("localhost", "root", "", "simple tutorial");

    if(isset($_POST['user'])){

$q='SELECT `user_name` FROM `user` WHERE `user_name` LIKE "%'.$_POST['user'].'%" ';
        $r = mysqli_query($con, $q) ;

while($row = mysqli_fetch_assoc($r)){

/* It return data to datalist in the database_suggestion.php file */
echo '<option value="'.$row['user_name'].'"> ' ;

}

}

?>

Thursday, March 22, 2018

How to add an image to the left/ right of a text html









<!doctype html>
<!-- Powered by Computer Master -->
<html>
     <title>
Paragraph and image
</title>
<style>
         *{
   margin:0px ;
   padding:0px; 
   }
   
#container{
       width:90%;
   padding:2%; 
   box-shadow:0px 0px 10px #888888; 
   overflow:auto;  
   margin:10px auto; 
   }
</style>
<body>
<div id="container">
<p style="padding:1%; overflow:hidden;">
    <!-- this image will show at the left of the paragraph -->
<img src="cm.jpg" width="100px" style="float:left;margin-right:10px;"/>
This is a paragraph, and it will show at the right of an image
This is a paragraph, and it will show at the right of an image
This is a paragraph, and it will show at the right of an image
This is a paragraph, and it will show at the right of an image
</p>
<p style=" padding:1%; overflow:hidden;">
<img src="cm.jpg" width="100px" style="float:left;margin-right:10px;"/>
This is a paragraph, and it will show at the right of an image
</p>
<p style=" padding:1%; overflow:hidden;">
<img src="cm.jpg" width="100px" style="float:left;margin-right:10px;"/>
This is a paragraph, and it will show at the right of an image
</p>
<!-- end of container -->
</div>
</body>
</html>

How to make sky force game in java eclipse


Download Source Code

watch tutorials on youtube

Images for Sky Force:




Tuesday, March 20, 2018

How to create a Modal div for a website


Source Code for Modal by Computer Master!!

Demo:






<!Doctype html>
<html>
<title> Powered by Computer Master </title>
<style>
  *{
margin:0px;
padding:0px;
}

#cm-modal{
width:50%;
height:200px;
margin:20px auto;
border-radius:5px;
box-shadow:0px 0px 10px #888888;
overflow:hidden;
position:relative;
  }
</style>

<body>

<div id="cm-modal">

  <h2 style="background:#405570; color:white; text-align:center; padding:1%; ">
  I am the Modal!!
  </h2>

  <p style="padding:1%; ">
  This is a simple paragraph in the modal.
  </p>

  <span style="position:absolute; bottom:0px; background:#405570;
       color:white; width:98%; padding:1%; text-align:center; ">
  Footer of the modal
  </span>

</div>

</body>

</html>

Monday, March 19, 2018

Different Between static and dynamic pages

Static Web Pages: 

 Those pages in which content are drawn for a huge a time such as the title of a website is permanently on a website and is not changed, similarly the homepages of websites.


Dynamic Web Pages:

Those pages in which content is changed after a specific time such as product and its prices etc. Prices and product change as time passes.


Exmaple of Static webpages and Dynamic web pages


In facebook, facebook title and login page is static and is not change, while the news feed of the facebook is dynamic because it changes with time to time.

Similary in Youtube, youtube search is static while the contents down the search is dynamic  content bacause it changes time to time.

Simple pop up window in HTML5 and CSS

Demo:


Copy the code and past it in your browser

<!doctype html>
<html>


<style>

#popup{display:none; background:#efefef; border:1px solid black; width:50%; height:200px;}

</style>

<body>

<button onclick="document.getElementById('popup').style.display='block'">Click Me!!!</button>
<div id="popup">

I am pop up
<button onclick="document.getElementById('popup').style.display='none'">Hide</button>

</div>

</body>
</html>





Keyword: Making of a simple pop up window html5 css

css and html5 simple pop up window
learn how to pop up a simple window
simple pop up window in html5 and css

HTML5 and CSS pop up window

In this tutoiral you are going to learn how to make a pop up window in a website


Demo




Source Codes given below in the grey area. Copy them all and past it into your html file !!



<!-- Powered by Computer Master copyright 2018 - 2030 -->

<!doctype html>
<html>
<head>
<title>Computer Master</title>
<style>
      *{
margin:0px;
padding:0px;
   }
body, html{
         width:100%;
height:100%; }
  #cm-popup{
         display:none;
box-shadow: 0 0 10px #888888;
position:fixed;
left:50%;
transform:translateX(-50%);
         width:50%;
height:200px;
}
 .cm-btn{
         border:none;
         background:#405080;
         color:white;
border-radius:2px;
}

</style>
</head>
<body>
 
<h2 align="center">Click here to pop up a window</h2>
 
    <!-- Click Me button set up -->
<div style="width:200px; margin:20px auto;">
<button
        class="cm-btn"
        style="font-size:20px;  width:200px; height:50px;"
        onclick="document.getElementById('cm-popup').style.display='block'">

  Click Me!!!

</button>
</div>


<!-- Pop up window -->
<div id="cm-popup">
     <!-- header of the pop up window -->
<h2
   style="width:98%;color:white;text-align:center;padding:1%;background:#405080;">
   I am poped up
</h2>

<div style="padding:2%;overflow:hidden;">

Click hide to hide this window !!
           
<!-- Hide button -->
<button
       class="cm-btn"
   style="position:absolute;bottom:5%;left:2%;width:80px; height:40px;"
   onclick="document.getElementById('cm-popup').style.display='none'">
   Hide
    </button>
</div>
</div>

</body>
</html>



Keywords:
How to make a pop up window in HTML5   

pop window HTML5


Styling up a pop up window 

learn how to build up a website




In this tutorial i am going to show you how to create a pop up window without any JavaScript or JQuery. Just HTML 5 can make your work easy.

Button: 


If you click on this button the follow window will pop up 

<button  onclick="document.getElementById('popme').style.display='block'" > Click me to pop up a window </button>



Pop up Window:


This window will pop up on the center of a website


<div id="popme" style="position:absolute; top:50px; left:50%; width:500px; height:400px; ">
I am the window that poped up by you clicking:
Note if you want to hide this window back click on the button given below

<button  onclick="document.getElementById('popme').style.display='none'">Hide</button>

HOW TO CREATE CURRICULUM VITAE (C.V)



Friday, March 16, 2018

Class 4th English Paper for examination 2018


Name of student:_________________Class:____________Roll No: _______________
PAPER ENGLISH CLASS 4TH ANNUAL EXAMINATION
TIME: 3 Hours                                                            Total Marks:100
Q.No.1. Tick the count nouns() and cross(×) the uncountable nouns. 10
Oil,   Orange, Fish, Water, Sugar, Banana, Salt, Egg, Rice, Dir
Q.No.2. Write (T) for true and (F) for false. 10

       i.        The Polar bears very thick coat of hair helps to keep it warm.    (       )
      ii.       The Polar bear natural habitat is not the North Pole.                   (        )
    iii.       The Polar bear never hunts alone.                                                (        )
     iv.       Fish and Seals are not the Polar bear’s main food.                      (        )
       v.       A young Polar bear is called a cub.                                              (       )

Q.No.3. Write 2nd form (Past form) of the verbs given below. 10
Go______________. Come_____________. Give_____________. Get____________.
See_____________. Write_____________. Pass______________.
Q.No.4. Join the opposite words. 10
High              Big            Beautiful     Long         Easy
Small            Low           Short            Ugly         Difficult
Q.No.5. Translate into Pashto or Urdu. 10
                           i.            Zarak was standing at the School’s gate.   ___________________________________
                           ii.            He saw, a blind beggar.                            ___________________________________
Q.No.6. Write the plural of the following. 10
Bird___________. Flower_________. Lamb_________. Nest_________. Star__________. Tree___________. Worker__________.
Q.No.7. Write the masculine nouns of the following Feminine nouns. 10
Mother_________. Sister_________. Hen__________. Cow________. Women___________.
Q.No.8. Answer the following Questions. 20

                            i.            What is noun?  Ans: _________________________________________________________.
                            ii.            What is Proper noun? Ans:   __________________________________________________.
Q.No.9. Translate into English. 10
  1 یہ ایک لڑکا ہے۔                       2  وہ ایک لڑ                        3 میں سکول جاتا ہوں۔                   
  ______________________ .3  ____________________.2        ____________________.1

Thursday, March 15, 2018

form1.html source codes


Down below discussed all the types of input fields and things that are used in an HTML form

To watch in urdu how to make this click on the link given below
Part 1 of all types of input field in a form html5
Part 2 of all types of input field in a form

 <!doctype html>
<html>
<title>Html Form</title>
<style>
*{margin:0px; padding:0px; }
#main{ width:280px; margin:10px auto;}
.inputfield{width:280px; height:45px;border:1px solid #C4C2C2;border-radius:5px;font-size:20px;
 padding:0px 10px; }

</style>
<body>

<div id="main">
<form method="post" action="" name="" style="">
Name:<br>
<input type="text" class="inputfield" placeholder="Insert text"
style=""><br><br>
 Mobile:<br>
 <input type="tel" class="inputfield" placeholder="cell no" /><br><br>
 <label>Email</label><br>
 <input type="email" class="inputfield" placeholder="email" /><br><br>
 <label> Url </label><br>
 <input type="url" class="inputfield" placeholder="url" /><br><br>
 <label>Password</label></br>
 <input type="password" class="inputfield" placeholder="password" /><br><br>
 <label> date</label><br>
 <input type="date" class="inputfield"  placeholder="date" /><br><br>
 <label> Gender </label><br>
 Male <input type="radio" name="sex"  />
 Female <input type="radio" name="sex"  checked/><br><br>
 <select name="selection" class="inputfield">
 <option value="option1" >Option 1</option>
 <option value="option2">Option 2</option>
 <option value="option3" selected>Option 3</option>
 <option value="option4">Option 4</option>
 </select><br><br>
 checkbox 1<input type="checkbox" name="checkboxes" value="checkbox1" />
 checkbox 2<input type="checkbox" name="checkboxes" value="checkbox2"  />
 checkbox 3<input type="checkbox" name="checkboxes" value="checkbox3" />
 checkbox 4<input type="checkbox" name="checkboxes" value="checkbox4" />
 <br><br>
 List:<br>
 <input list="list" class="inputfield" name="list">
 <datalist id="list">
 <option value="option1">
 <option value="option2">
 <option value="option3">
 <option value="option4">
 </datalist>
 <br><br>
 Number:<br>
 <input type="number" class="inputfield" max="7" min="-5" step="2"/><br><br>
 Range:<br>
 <input type="range" class="inputfield" max="" step="" value="30" min=""/><br><br>
 Color:<br>
 <input type="color" class="inputfield" value="#efefef" /><br><br>
 Textarea:<br>
 <textarea class="inputfield" placeholder="textarea" name="textarea"></textarea><br><br>
 <input type="submit" name="submit" value="Submit"  style="width:70px;height:50px;"/>
 <input type="reset" value="Reset" style="width:70px;height:50px;" />

 <pre>












 </pre>
</form>
</div>
</body>
</html>

Software life development cycle


The sequence of stages in which an intended software is
developed.
In SDLC a series of steps is followed to design and developed a
software product efficiently. These steps are given below

Communication:

First step where an organization or developers gets request for
desire software and negotiate all the terms and conditions.

Requirement Gathering:

In this step developers discuss about all the things used in a
require software. They study or collect information using
questionnaire etc. To collect required information.

Feasibility Study:

The software developer teams check whether the project is
financially, practically and technologically feasible for the
organization to take up.
Other algorithms are available for feasibility of a software project.

System analysis:

System analysis include understanding of software limitation,
learning system related problem, what changes to be done in
existing systems beforehand.

Software design:

To design the software product from the input and output (by
input mean’s gathering of requirement output mean’s the physical
and logical design of a project)

Coding:

This step know as programming phase, developers
write/implement the program to be it’s error free.

Testing:

An estimate says 50% of whole software development should be
tested.
Error may ruin the software critical level to its own removal
software testing is done. Testing could be done by coding experts.

Integration:

This mean’s a software can be joint with outer world entities, ie
for database or some other programs or libraries etc.

Implementation:

Installing software on user machine for his requirements.
Operation & maintenance:
Software is update time by time so a software product is more
operation and error free.

maintenance:

As time elapsed the software may decline on the performance
front it may go completely obsolete or it may need intense
upgrading.

html5 designed home page


Click here to watch the tutorial on youtube.

index.html File

<!DOCTYPE html>
<html>
<head>
<title>Our home page</title>
<style>
*{margin:0px; padding:0px; }
body, html{height:100%; color:black;line-height:1.8 ;}
#menu{position:fixed; top: 0px; background:#526687 ; width:100%; padding:5px; overflow:auto;} 
#menu ul li{list-style-type:none; float:left;  padding:5px;color: white; font-size:20px;  }
#menu ul li:hover{background:#efefef;  }
#menu ul li a:hover{color:black;}
#menu ul li a{color:white; text-decoration:none; }
.home-top{background-image: url("image.jpg"); height:100% ; 
          background-position: center ; 
  background-repeat: no-repeat; 
  background-size: cover ; 
          }
  
  .inputfield{widht:100%; height:45px; font-size:20px; padding:0px 5px;
  border-radius:5px; }
  .button{border:none; border-radius:3px; background:#526687 ;color:white; width:70px; height:40px;}
          .button:hover{background:#efefef; color:black; }
  
  </style>

</head>
<body>
<div id="menu">
<ul>
<li><a href="#home-top">Home</a></li>
<li><a href="#about us">About us</a></li>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#Contact us">Contact us</a></li>
</ul> 
<a href="#" style="float:right;padding:5px; margin-right:10px; color:white;">Login</a>
</div>
<div class="home-top" id="home-top">
<h2 style="color:white; margin-top:50px; padding-top:20px; font-family:bold;text-align:center"> Computer Master </h2>
<p style="padding:20px ; text-align:center; color:white;">
Welcome to our website Welcome to our website Welcome to our website Welcome to our website</p>
</div>
<div id="about us" style="height:500px; width:100%; overflow:auto; ">
<div id="container" style="width:80%; margin:0px auto;"><h2 style="text-align:center; border-bottom:2px solid black; ">About us</h2>
<p style="padding:20px; text-align:center">
The website is produced by the team of computer master 
The website is produced by the team of computer master 
The website is produced by the team of computer master 
The website is produced by the team of computer master 
The website is produced by the team of computer master 
The website is produced by the team of computer master 
The website is produced by the team of computer master 
</p>
<hr><br><br>
<p>
<img src="cm.png" style="width:150px; float:left; margin-right:20px; "  />
This is computer master profile
This is computer master profile
This is computer master profile
This is computer master profile
This is computer master profile
This is computer master profile
This is computer master profile
This is computer master profile
This is computer master profile
This is computer master profile

</p>


</div>

</div>

<div id="introduction" style="height:500px; border:1px solid #efefef;">
<div id="container" style=" width:80%; margin:0px auto;">
<h2 style="text-align:center; border-bottom:2px solid black; ">Introduction</h2>
<p style="padding:20px; text-align:center">
Our website is going to produce alot of tutorials about web development as well as dekstop application
in java c++ and many other programming languages.
</p>
 <br><br>



</div>

</div>
<div id="Contact us" style="height:500px; ">

<div id="container" style=" width:80%; margin:0px auto;">
<h2 style="text-align:center; border-bottom:2px solid black; ">Contact us</h2>
<p> We'd love to take your feedback and if you have any problem contact us using the form 
given below fill in all the required field.</p>
<form method="post">
Name :<br>
<input type="text" placeholder="Insert your name" class="inputfield" /><br><br>
User Name:<br>
<input type="text" placeholder="Insert your user Name" class="inputfield"/><br><br>
<input type="password" placeholder="password" class="inputfield" /><br><br>
<input type="submit" class="button" value="Submit" />

</form>




</div>


</div>

<div id="footer" style="height:100px; background:#426677">
<p align="center"><button onclick=location.href="#home-top" style="margin:10px; width:90px; height:40px; border:none; "> To top</button></p>
<p style="text-align:center;color:white; font-family:bold; font-size:17px; "> Powered by computer master </p>
</div>












</body>

</html>