Google News
logo
Create A Basic Website

Create one folder in your desktop or local drive. After creating a folder again create inner folers are css, images, javascrip etc,. Complete these process finally start the coding.....

Note : Save your main (home) page only index.html and another page names your wish.

  Start Coding
 Basic Structure
  HTML Code
<html>
<head>
<title>Basic HTML Website</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>

<!-- Start Teplate -->
<div id="wrapper">




</div>
<!-- End Teplate -->

</body>
</html>
  CSS Code
/* (#) means ID Based */
/* (.) means class Based */

*{
	margin-left:auto;
	margin-right:auto;
}
body{
	font-family:Arial, Helvetica, sans-serif;
	background:#FFF;
	margin:0px;
	}
.clearfix{ clear:both;}
#wrapper{ 
	width:1024px; 
	margin:0px auto; 
	background:#FFF; 
	border:1px solid #CCC;
}
 Step 1 : Header (or) Menu
Reference Image
  HTML Code
<div id="nav">
  <ul>
     <li><a href="#">Home</a></li>
     <li><a href="#">About Us</a></li>
     <li><a href="#">Servises</a></li>
     <li><a href="#">Gallery</a></li>
     <li><a href="#">Blog</a></li>
     <li><a href="#">Contact Us</a></li>
  </ul>
</div>
  CSS Code
#nav{ 
	width:1024px;
	float:left;
	background:#CCC;
}
#nav ul{
	list-style:none;
	}
#nav ul li{
	list-style:none;
	font-family:arial;
	font-size:14px;
	text-transform:uppercase;
	padding:10px 0px 15px 0px;
	margin:5px 0px 12px;
	float:left;
	font-weight:bold;
}
#nav ul li a{
	padding:10px 45px 10px 45px;
	margin:5px 0px;
	text-decoration:none;
	color:#000;
	}
#nav ul li a:hover{
	color:#000;
	background:#FFF;
	}
 Step 2 : Slider (or) Banner
Reference Image
  HTML Code
<div class="banner">
     <img src="images/banner.jpg" alt="Banner Image" /> 
</div>
  CSS Code
.banner{ 
	width:1024px;
	height:auto;
}
 Step 3 : Content
Reference Image
  HTML Code
 <div class="content">
    
    <div class="content-left">
        	<div class="content-header">Content Left</div>
            <div class="clearfix"></div>
            <img src="images/content-left.jpg" />
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
            industry's standard dummy text ever since the 1500s,...</p>
            <a href="#" class="btn">Read More</a>
    </div>
        
    <div class="content-right">
        	<div class="content-header">Content Right</div>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
            industry's standard dummy text ever since the 1500s,...</p>
            <h4> &nbsp; Sample Heading</h4>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
            industry's standard dummy text ever since the 1500s,...</p>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
            industry's standard dummy text ever since the 1500s...</p>
    </div>
        
</div>
  CSS Code
.content{ 
	width:1022px;
	height:auto;
	border:1px solid #CCC;
	float:left;
	padding-bottom:20px;
}

.content-left{ 
	width:290px;
	height:auto;
	float:left;
	margin:5px;
}
p{
	font-size:14px;
	color:#000;
	line-height:24px;
	padding:10px;
	text-align:justify;
}
.content-right{ 
	width:712px;
	height:auto;
	float:left;
	margin:5px;
}
.content-header{
	background:#CCC;
	color:#000;
	font-size:18px;
	text-align:justify;
	padding:7px 10px 7px 10px;
	}

.btn{
	background:#069;
	color:#FFF;
	font-size:12px;
	padding:7px 20px;
	margin-left:10px;
	text-decoration:none;
	}
.btn:hover{
	background:#004F75;
	color:#FFF;
	
	}
 Step 4 : Footer
Reference Image
  HTML Code
<div id="footer">
     <ul>
          <li><a href="#">Home</a></li>
         <li><a href="#">About Us</a></li>
         <li><a href="#">Servises</a></li>
         <li><a href="#">Gallery</a></li>
         <li><a href="#">Blog</a></li>
         <li><a href="#">Contact Us</a></li>
     </ul>
     <div class="clearfix"></div>
     <div id="copyrights">
        	&copy; 2018. All rights reserved by <a href="http://www.freetimelearning.com" target="_blank">Free Time Learn</a>.
     </div>
</div>
  CSS Code
#footer{ 
width:1024px;
float:left;
background:#CCC;
}
#footer ul{
	list-style:none;
	}
#footer ul li{
	list-style:none;
	font-family:arial;
	font-size:10px;
	text-transform:uppercase;
	padding:15px 0px 5px 0px;
	margin:5px 0px 12px;
	float:left;
	font-weight:bold;
}
#footer ul li a{
	padding:10px 55px 10px 55px;
	margin:5px 0px;
	text-decoration:none;
	color:#000;
	}
#footer ul li a:hover{
	color:#FFF;
	}

#copyrights{
	font-size:12px; 
	color:#000;
	text-align:center;
	padding:5px 0px 10px 0px;
	}
#copyrights a{ 
color:#069;
text-decoration:none;
}
#copyrights a:hover{
	color:#666;
	}