Make Money Online WEBSITES How To Make Website using Html & CSS | Complete Responsive Website Design Tutorial

How To Make Website using Html & CSS | Complete Responsive Website Design Tutorial

How To Make Website using Html & CSS | Complete Responsive Website Design Tutorial post thumbnail image


In this tutorial, we will be creating a responsive website from scratch using HTML and CSS. We will be using a simple design with a header, main content area, sidebar, and footer.

The first step is to create the HTML structure for our website. We will need a

element, a
element for the main content, a element for the sidebar, and a

element.

My Website

This is the main content of my website.

This is the sidebar content of my website.

This is the footer content of my website.

Now that we have the HTML structure, we can start styling it with CSS. We will start by styling the

element. We will give it a height of 100 pixels and set the background color to white. We will also set the text color to black and the font-size to 18 pixels.

header {

height: 100px;

background-color: white;

color: black;

font-size: 18px;

}

Next, we will style the

element. We will give it a width of 960 pixels and set the background color to lightgray. We will also set the text color to black and the font-size to 16 pixels.

main {

width: 960px;

background-color: lightgray;

color: black;

font-size: 16px;

}

Next, we will style the element. We will give it a width of 300 pixels and set the background color to lightgray. We will also set the text color to black and the font-size to 14 pixels.

sidebar {

width: 300px;

background-color: lightgray;

color: black;

font-size: 14px;

}

Finally, we will style the

element. We will give it a width of 960 pixels and set

Related Post