Friday, 30 October 2015

simple registration form

in this tutorial we are create a simple html registration form using HTML 5.Like this Example

Code of this page is below :-
Step 1 :-
             We are create the page type of  HTML document. we are using doctype html tag.this tag define the page documentation.
Example :-
                  <!doctype html>
Note :-
              for the HTML 5 can't be declare <!doctype html5> .in html you can use small letter for tag.
 Step 2 :- 
                We are declare html tag in page for html web page and define the head session of the web page.In head session we define the page Title. this Title is use by the search engine for the search for web page and the Title is display in your web browser Address Bar.When we are save the web page of bookmark then this Title is use of page Title.We are declare title for title tag in html.  
Example :-
                <!doctype html>
                   <html>
                      <head>
                           <title>Registration From</title>    
                     </head>
                  </html>
Note :-
             Always close the HTML tags. The Head Session part of the page can't be display in your web browser but it is most important part of the page.
Step 3 :-
               Then After we are create the body part of the page.this part of the is display in your web browser.in this part we are creating the displayed element in the page using HTML tags.
Example :-
                   <!doctype html>
                   <html>
                      <head>
                           <title>Registration From</title>    
                     </head>
                     <body>
                     <h1>Registration Form</h1>      
                    Full Name: <input type="text" name="name" >            
                   Mobile Number: <input type="number" name="mobile_no" >                  
                   E-Mail:<input type="email" name="email" >
                   Password:<input type="password" name="pwd" >                
                   Sex:
                        <input type="radio" name="sex" value="male" checked>Male
                       <input type="radio" name="sex" value="female">Female                  
                   Date of Birth:<input type="date" name="dob" >              
                   Marital Status:
                        <input type="radio" name="mstatus" value="single" class="single">Single
                        <input type="radio" name="mstatus" value="married" class="married">Married
                   Date of Anniversary:<input type="date" name="doa" class="anniversary">
                   Country Name:                
                        <select name="country" id="country_id">
                            <option value="">Select Country</option>
                            <option value="">Select Country</option>
                            <option value="">Select Country</option>
                            </select>                
                    State Name:</div>
                        <select name="state" id="state_id">
                            <option value="">Select State</option>
                            <option value="">Select State</option>
                            <option value="">Select State</option>
                        </select>                  
                     City Name:
                      <select name ="city" id ="city_id">
                            <option value="">Select City</option>
                            <option value="">Select City</option>
                            <option value="">Select City</option>
                        </select>
                        <input type="submit" value="submit">
                  </body>
              </html>

Sunday, 25 October 2015

sample css file for html and php page

body{
    margin:0;
   // text-align: center;
 
}

.page-wrap {
  text-align: left;
  max-width: 920px;
  min-width: 920px;
  margin: 0 auto;

  color: #cccccc;
}


.main-table {
    width: 920px;
}

.header {
    height: 100px;
    background-color: lightgoldenrodyellow;
}

.menu {
    height: 20px;
    background-color: yellowgreen;
    padding: 10px;
    color: white;
}
.banner {
    height: 300px;
 
}

.banner img{
    height: 300px;
}

.footer {
    height: 65px;
    background-color: blue;
    color: white;
    text-align: center;
}
.width33{
    width: 33.33%;
}
.width100{
    width: 100%;
}

.logo{
    height: 100px;
}

.pull-center{
    text-align: center;
}

.pull-left{
    text-align: left;
}

.pull-right{
    text-align: right;
}

td {
    vertical-align: top;
}

.height429{
    height: 429px;
    width: auto;
    color: #cccccc;
}

.pad5{
    padding: 5px;
}

.height300{
    height: 300px;
 
}

.height200{
    height: 200px;
}
.width40{
   width: 40%;
}
.width60{
    width: 60%;
 
}
.width20{
    width: 20%;
}
    Created on : Oct 23, 2015, 5:14:41 PM
    Author     : jitendra


<!doctype html>
<html>
    <head>
        <title>Home page</title>
        <link rel="stylesheet" type="text/css" href="css/main.css">
    </head>
    <body>
        <div class="page-wrap">
            <table cellspacing="0" cellpadding="0" class="main-table">
                <?php include 'common/header.php';
                      include 'common/menu.php'; ?>
             
             
                <tr class="banner">
                    <td><img src="image/banner.jpg" class="width100"/></td>
                </tr>
                <tr>
                    <td>
                        <table class="width100">
                            <tr>
                                <td class="width33">
                                    <h1>News</h1>
                                    <ol>
                                        <li>xxxxxxxx</li>
                                        <li>xxxxxxxx</li>
                                        <li>xxxxxxxx</li>
                                        <li>xxxxxxxx</li>
                                    </ol>
                                </td>
                                <td class="width33">
                                    <h1>Welcome</h1><p>Sociosqu inceptos. Lorem elit vestibulum. Fames ornare velit ultrices laoreet eleifend eu curae; ridiculus. Sagittis tellus rutrum. Taciti dictum hendrerit ipsum primis mauris at nostra risus et. Donec fames quam diam hendrerit per. Suspendisse curae; pulvinar imperdiet mi pellentesque.</p>                                
                                </td>
                                <td class="width33">
                                    <h1>Link</h1>
                                    <ol>
                                        <li>xxxxxxxx</li>
                                        <li>xxxxxxxx</li>
                                        <li>xxxxxxxx</li>
                                        <li>xxxxxxxx</li>
                                    </ol>
                                </td>
                             
                            </tr>
                        </table>
                    </td>
                </tr>
             
                <?php include 'common/footer.php'; ?>
            </table>
        </div>



    </body>
</html>