Computer Science, asked by guptamr51, 9 months ago

How to make a website in HTML​

Answers

Answered by disha246867
1

Answer:

HTML is the standard markup language for creating websites and CSS is the language that describes the style of an HTML document. We will combine HTML and CSS to create a basic web page.

Creating Page Content

Inside the <body> element of our website, we will use our "Layout Draft" and create:

A header

A navigation bar

Main content

Side content

A footer

Header

A header is usually located at the top of the website (or right below a top navigation menu). It often contains a logo or the website name:

<div class="header">

<h1>My Website</h1>

<p>A website created by me.</p>

</div>

Then we use CSS to style the header:

.header {

padding: 80px; /* some padding */

text-align: center; /* center the text */

background: #1abc9c; /* green background */

color: white; /* white text color */

}

/* Increase the font size of the <h1> element */

.header h1 {

font-size: 40px;

}

Similar questions