As part of this project you will learn:
You can follow a video instructions:
CSS stands for Cascading Style Sheets. It is a language used to describe the look and formatting of a document written in HTML. In simpler terms, CSS is responsible for making a web page visually pretty by controlling its colors, fonts, layouts, and overall design.
Here's an example of CSS code:
CSS works together with HTML, which is like the structure or skeleton of a web page. HTML defines what the different parts of the page are, like headings, paragraphs, or images. CSS comes in and styles those parts to make them look great.
Let's start coding by creating a new HTML page named index.html and adding the basic structure to it. Follow these steps:
Let's add the header element and apply the CSS style for the header. Here are the next steps:
Let's add a top menu section to the page using a div container and list ul with list items li>. Here are the steps:
We also need to add css style for our menu bar like this:
Our page should look like this:
Let's add an image to the page using an img tag within a div container. Here are the steps:
you can download image from here
To position our image in the center we also need to add css style:
<div class="content"> <div class="container"> <div class="row"> <div class="col-md-6"> <h2>About Cars</h2> <p>Cars are a common form of transportation used by people all over the world.</p> </div> <div class="col-md-6"> <h2>Types of Cars</h2> <p>There are different types of cars, such as sedans, SUVs,hatchbacks, and sports cars.</p> </div> </div> </div> </div>
Our final html page code is following:
Css file should look like this:
It's time to put your programming language knowledge to the test. We have an exciting quiz for you! Below is a list of programming language names, some of which are real, and others are fake. Your task is to distinguish between them. For Quiz click the following button:
You have completed this project.