100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

CSS advance theory and practice program

Rating
-
Sold
-
Pages
6
Uploaded on
06-12-2025
Written in
2024/2025

In that pdf we provide css notes and program that written by teachers

Institution
Module









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Module

Document information

Uploaded on
December 6, 2025
Number of pages
6
Written in
2024/2025
Type
Lecture notes
Professor(s)
Shraddha jadhav
Contains
All classes

Subjects

Content preview

Unit IV:- Cascading Style Sheets

Introduction to CSS and Its Syntax

What is CSS?
CSS (Cascading Style Sheets) is a styling language used to enhance the appearance and
layout of an HTML webpage.
It helps in designing colors, fonts, spacing, layouts, and animations for web pages.

Why Use CSS?
Makes web design attractive – Controls colors, fonts, margins, padding, etc.
Separates HTML and styling – Keeps the code clean and organized.
One CSS file can control multiple HTML pages – Saves time and effort.
Enables responsive design – Makes websites mobile-friendly.

CSS Syntax
A CSS rule consists of three main parts:
1 Selector – Specifies which HTML element to style.
2 Property – Defines what aspect to style (e.g., color, font).
3 Value – Specifies the styling details (e.g., red, 16px).
CSS Syntax Example
selector {
property: value;
}

Example: Changing the Background Color:-
<html>
<head>
<style>
body {
background-color: lightblue;
}
</style>
</head>
<body>
Hi hello
</body>
</html>
Explanation:
 body → Selector (Targets the <body> tag)
 background-color → Property (Defines the background color)
 lightblue → Value (Sets the color to light blue)

, Types of CSS

There are three main ways to apply CSS to an HTML page:

1 External CSS (Best Practice)
CSS is written in a separate .css file and linked to an HTML page using the <link> tag. This
approach keeps the code clean and reusable across multiple pages.
HTML File (index.html)
html
<!DOCTYPE html>
<html >
<head>
<title>External CSS</title>
<link rel="stylesheet" href="styles.css"> <!-- Linking the CSS file -->
</head>
<body>
<h1>Learn CSS!</h1>
<p>This example uses an external CSS file.</p>
</body>
</html>
📄 CSS File (styles.css)

body {
background-color: lightgray;
}
h1 {
color: blue;
text-align: center;
}

2 Internal CSS

CSS is written inside the <style> tag within the HTML document.
It applies only to a single HTML page.

📄 Example:

<html>
<head>
<title>Internal CSS</title>
<style>
body {
background-color: yellow;
}
h1 {
color: red;
£6.86
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
pranavkamble1

Also available in package deal

Get to know the seller

Seller avatar
pranavkamble1 Rajarshi shahu collage Latur
Follow You need to be logged in order to follow users or courses
Sold
New on Stuvia
Member since
3 days
Number of followers
0
Documents
2
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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions