Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Presentation

CSS introduction and tutorial for beginners

Rating
-
Sold
-
Pages
12
Uploaded on
02-07-2024
Written in
2023/2024

It is very useful to css beginner

Institution
Course

Content preview

CSS Introduction and Tutorial for Beginners
TOPIC:

1.Introduction to CSS and HTML Basics

2.Differences Between HTML and CSS

3.Web Development Prerequisites

4.Tools and Platforms for Website Development

5.Creating a New Project Folder

6.Understanding External, Internal, and Inline CSS

7.CSS Rules and Declarations

CSS Rules and Declarations

CSS (Cascading Style Sheets) is a style sheet language used for describing the look and formatting of a
document written in HTML. It is a cornerstone technology of the World Wide Web, alongside HTML and
JavaScript.

CSS Rules

1.CSS rules are made up of two parts: the selector and the declaration.

2.The selector is a pattern that identifies the HTML element that the rule applies to.

3.The declaration contains the properties and their values that will be applied to the selected
element(s).

Declaration Blocks and Properties

1.A declaration block is a list of individual declarations, each separated by a semi-colon (;).

2.Each declaration includes a property name and a value.

For example:

p{

color: red;

font-size: 14px;

}

, In this example, the selector p targets all paragraph elements. The declaration block includes two
declarations: color: red; and font-size: 14px;.



CSS Selector

There are several types of CSS selectors, including:

1.Element selectors: select elements based on their HTML tag name, e.g. p, div, span.

2.Class selectors: select elements based on their class attribute, e.g. .my-class.

3.ID selectors: select a single element based on its ID attribute, e.g. #my-id.

Creating a New Project Folder

1.When starting a new web development project, it's a good practice to create a new project folder to
keep all of your project files organized.

2.Create a new folder on your computer to serve as the project root.

3.Inside the project root, create subfolders for different types of files, e.g. css, js, images.

4.Store all of your project's HTML, CSS, and JavaScript files inside these subfolders for easy organization
and access.

CSS (Cascading Style Sheets) is a styling language that is used to control the layout and appearance of
web pages.

It is used in conjunction with HTML to add visual flair to web pages.

Here are some fundamental concepts related to CSS:

Color Contrast and Checkers: Color contrast is an important consideration when designing websites.

It ensures that the text on a web page is easily readable against its background.

Checkers is a tool that helps to check the contrast ratio between two colors.

Color Theory and HSL: Color theory is a concept that deals with the mixture of colors to create new
colors.

HSL (Hue, Saturation, Lightness) is a color model that represents colors as a combination of these three
attributes.

CSS Display: Flex and Grid: Flex and grid are two display properties in CSS that help to control the layout
of web pages. Flex is used for one-dimensional layouts, while grid is used for two-dimensional layouts.

Written for

Institution
Course

Document information

Uploaded on
July 2, 2024
Number of pages
12
Written in
2023/2024
Type
PRESENTATION
Person
Unknown

Subjects

$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
swethasasi

Get to know the seller

Seller avatar
swethasasi School
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions