How To Create A Simple Website Using HTML and CSS With Source Code

Preview Link
Quick Info
Youtube : https://youtu.be/6uTAcOxG_Qk
Views : 1158
Skills : website using html and css
Category : web design
Tag : website using html and css

In this tutorial, how to create a simple website using html and css with source code that you can free download.

Creating a website using HTML and CSS is a fundamental skill for anyone interested in web development. Whether you're building a personal portfolio, a small business site, or just experimenting, understanding the basics of web design is crucial. This guide will walk you through the process of creating a simple website without requiring advanced coding skills..

Section We Are Going To Design Simple Website Using HTML AND CSS With Source Code

In our simple website, we are going to design only 3 section : Header section, Main Body And Footer section

Header
  • Website Logo
  • Main menu
Main Body
  • Banner
  • About us
Footer
  • Copyright Content

Video Tutorial

To understand easily, you can see a full coding video on how to create a simple website using html and css with source code. You can also watch the video tutorial below.

Let's Start The Coding For Website Using HTML And CSS

Firstly, create the folder on desktop, my folder name is : simple-website Inside simple-website folder, create two sub folder : - 1) css and 2) images

Inside the CSS folder, we will save the css file, which we will use on this website.

Inside the images folder, we will save all images which we will use on this website.

Inside simple-website folder, I am creating one HTML file file name - index.html

Inside css folder, I am creating one CSS file - file name - style.css

Let's start designing with writing basic HTML 5 code in index.html, and link style.css file to index.html file

Common HTML code. Copy this code and paste in index.html file

index.html
<!DOCTYPE html>
<html>

<head>
  <title>Website Using HTML And CSS</title>
  <link rel="stylesheet" href="css/style.css">
</head>

<body>

Common CSS Code. Copy this code and paste in style.css file

style.css
body {
	font-family sans-serif, arial;
	margin:0px;
}

Now, We Will Design The Header Section.

In our header section, we are having a logo on the left side and right side we are having the main navigation menu.

For logo we are going to use img html tag and for nav bar we will using ul>li html tag

Header section HTML code. Copy this code and paste in index.html file

index.html
<!------HEADER SECTION----->
<header>
  <div class="container">
    
    <div class="logo">
      <img src="images/logo.png">
    </div>
    
    <div class="menu">
      <ul>
        <li>HOME</li>
        <li>ABOUT US</li>
        <li>GALLERY</li>
        <li>SERVICE</li>
        <li>CONTACT US</li>
      </ul>
    </div>
    
  </div>
</header>
<!------HEADER SECTION----->

Header Section CSS Code. Copy this code and paste in style.css file

style.css
/********** HEADER CSS STARTS **********/  
.container {
	max-width:1100px;
	width:100%;
	margin: 0 auto;
	display:flex;
	gap:50px;
	justify-content: space-between;
}
header {
	background: pink;
}
.menu ul {
	display: flex;
	gap:20px;
	list-style: none;
	font-weight:500;
}
/********** HEADER CSS END **********/

Output Of Header Section

Header Section of simple website using html and css

Now, We Will Design The Banner Section.

In our banner section, we are having one big image.

For banner image we are going to use img html tag

Banner section HTML code. Copy this code and paste in index.html file

index.html
<!------SLIDER SECTION----->
 <img src="images/slider.jpg" class="banner">
<!------SLIDER SECTION----->

Banner Section CSS Code. Copy this code and paste in style.css file

style.css
/********** SLIDER CSS STARTS **********/  
.banner {
	width:100%;
}
/********** SLIDER CSS END **********/

Output Of Banner Section

Banner Section of simple website using html and css

Now, We Will Design The About Us Section.

In our about us section, we are having image and dummy content.

For image we are going to use img html tag and for dummy content we are going to use h2 tag for heading and p tag for paragraph

About Us section HTML code. Copy this code and paste in index.html file

index.html
<!------ABOUT US SECTION----->
<div class="container">
  <img src="images/about.png">
  
  <div>
    <h1>About My Cake Shop</h1>
    <p>If You are going to use of Lorem Ipsum need to be sure there to use of Lorem Ipsum need to be sure there isn't hidden of text If you are going to use of Lorem Ipsum need text. Sure there isn't hidden of text. If you are going Ipsum need to be sure.</p>
    
    <p>If You are going to use of Lorem Ipsum need to be sure there to use of Lorem Ipsum need to be sure there isn't hidden of text If you are going to use of Lorem Ipsum need text. Sure there isn't hidden of text. If you are going Ipsum need to be sure.</p>
    
    <p>If You are going to use of Lorem Ipsum need to be sure there to use of Lorem Ipsum need to be sure there isn't hidden of text If you are going to use of Lorem Ipsum need text. Sure there isn't hidden of text. If you are going Ipsum need to be sure.</p>
  </div>
  
</div>
<!------ABOUT US SECTION----->

About Us Section CSS Code. Copy this code and paste in style.css file

style.css
/********** ABOUT US CSS STARTS **********/  
p{
	line-height:26px; 	
	font-size:16px; 	
}
/********** ABOUT US CSS END **********/

Output Of About Us Section

About Us Section of simple website using html and css

Now, We Will Design The Footer Section.

In our footer section, we are copyright content at the bottom.

For footer, we are going to use footer html tag.

Footer section HTML code. Copy this code and paste in index.html file

index.html
<!------FOOTER SECTION----->
<footer>
    @ 2025 Dezven Software Solution. All Rights Reserved.
</footer>
<!------FOOTER SECTION----->

Footer Section CSS Code. Copy this code and paste in style.css file

style.css
/********** FOOTER CSS STARTS **********/  
footer{
	background:pink;
	text-align:center;	
	padding:12px;
}
/********** FOOTER CSS END **********/

Output Of Footer Section

footer Section of simple website using html and css

Understanding the Basics

In today's digital era, having a website is essential for businesses, professionals, and hobbyists alike. If you're new to web development, learning how to create a simple website using HTML and CSS is the perfect starting point. These foundational technologies allow you to build a visually appealing and functional website without relying on complex coding or third-party tools. In this guide, we'll walk you through the process of creating a simple website step by step.

Creating a simple website using HTML and CSS is a fundamental skill for anyone interested in web development. Whether you're building a personal portfolio, a small business site, or just experimenting, understanding the basics of web design is crucial. This guide will walk you through the process of creating a simple website without requiring advanced coding skills.

Final Output Of Complete Code

Simple Website Using HTML and CSS

What is HTML?

HTML (HyperText Markup Language) is the backbone of any website. It provides the structure and content of web pages using elements such as headings, paragraphs, images, and links. Without HTML, a web page would have no meaningful structure.

HTML uses different elements to define content. For example, headings define the title of sections, paragraphs provide textual content, and images add visual elements to a page. Understanding how HTML tags work together is crucial for building a well-structured website.

What is HTML?

CSS (Cascading Style Sheets) is used to style HTML elements. It allows you to change colors, fonts, layout, and overall appearance to make your website visually appealing. Without CSS, websites would appear as plain text with no design or formatting.

CSS works by selecting HTML elements and applying styles to them. It can control everything from the background color to the spacing between elements. Modern CSS also enables advanced layouts like grids and flexbox, allowing for more creative designs.

Planning Your Website

Before jumping into development, it's essential to plan your website's structure. Here are some key considerations:

  • Purpose: Define what your website will be about. Will it be a blog, a portfolio, or an online store?
  • Layout: SSketch a rough design of your homepage and subpages. Think about how content should be arranged.
  • Content: Prepare the text, images, and links you want to include. A good website should have clear and concise content that engages visitors.
  • Navigation: Decide on a menu structure to help users navigate easily. A well-organized menu improves user experience and accessibility.

Writing the HTML

The HTML file (index.html) will include the structure of the website, such as headings, paragraphs, buttons, and images. It should also link to the CSS file for styling.

Styling with CSS

CSS is used to make the website visually appealing. It controls colors, fonts, spacing, and layout styles to enhance the user experience.

Writing the HTML

The HTML file (index.html) will include the structure of the website, such as headings, paragraphs, buttons, and images. It should also link to the CSS file for styling.

A well-structured HTML file will have a clear hierarchy of elements. It starts with a head section, where metadata and stylesheets are linked, and a body section, where the actual content appears. Using semantic HTML elements like header, nav, and footer improves readability and accessibility.

Styling with CSS

CSS is used to make the website visually appealing. It controls colors, fonts, spacing, and layout styles to enhance the user experience. A consistent color scheme and typography can greatly impact the overall look and feel of a website.

You can use CSS properties like margin, padding, and border to control spacing and layout. Additionally, using CSS classes allows you to apply styles to multiple elements without repetition, making the design process more efficient.

Conclusion

Learning how to create a simple website using HTML and CSS is an excellent skill that opens doors to web development opportunities. By following these steps, you can build a functional and visually appealing website without needing advanced coding knowledge. Whether you're creating a personal site, a blog, or a business webpage, mastering these basics will set a strong foundation for your web development journey.

A well-designed website is not just about looks but also about usability and performance. Keep refining your skills, experiment with different styles, and stay updated with the latest web development trends to improve your website-building abilities.

Post your comment
For any query, information or suggestion, post your comment below. We love to hear from your.
  • nice source code for html css website project

  • very good simple html css website !!!

  • thank you for providing html and css sample code

  • Thank you for make a website using html and css

Click Here To View This Tutorial On Youtube Subscribe Us On Youtube