SlideShare a Scribd company logo
WEB PROGRAMMING
Cascading Style Sheets (CSS)
Dr.M.UMADEVI
ASSISTANT PROFESSOR
DEPARTMENT OF CS
SACWC
CUMBUM
Cascading Style Sheets (CSS)
• SS (Cascading Style Sheets) is a stylesheet language used to design the webpage
to make it attractive.
• The reason of using CSS is to simplify the process of making web pages
presentable. CSS allows you to apply styles to web pages.
• More importantly, CSS enables you to do this independent of the HTML that
makes up each web page.
• There are three types of CSS which are given below:
• Inline CSS
• Internal or Embedded CSS
• External CSS
• Why we learn CSS?
Styling has been an essential property for any website since many
decades. It increases the standards and overall look of the website which
makes it easier for the user to interact with it
• Base for web development: HTML and CSS is the basic skill that every
web developer should know. It is the basic skill that is required for
building a website.
• Makes your website look attractive: A website that’s dull and plain will not
attract the user most probably, so adding some style would surely make your
website presentable to the user.
• Makes the design come live: A web developer is responsible in making the
design given to him as a live product. CSS is used for styling to develop the design
of the website.
• Increases user experience of website: A website with a simple yet beautiful UI
would help the users to go through the website easily. CSS is used to make the
user interface better.
• More career opportunities: Since CSS is a basic requirement while learning
Web Development, therefor there are abundant career opportunities for it. As a
freelancer too you can land up to many projects.
•
• Basic Format: It is the basic
structure of HTML webpage and
we use CSS style inside webpage.
In a web page, we use internal
CSS (i.e. adding CSS code inside
<head> tag of HTML code)
<!DOCTYPE html>
<html>
<head>
<!-- Head section of web page -->
<title></title>
<!-- Stylesheet of web page -->
<style></style>
</head>
<body>
<!-- Body section of web page -->
</body>
</html>
Style sheet contain one or more CSS Rules
body { font-family: Tahoma, Arial, sans-serif; color: black; background:
white; margin: 8px; }
4
Selector
Property Value
Declaration Block
Web programming css
CSS Properties
Control many style properties of an element: ● Coloring ● Size ● Position ●
Visibility ● Many more: (e.g. p: { text-decoration: line-through; })
● Also used in animation
Properties
CSS box model
• CSS box model is a container which contains multiple properties including
borders, margin, padding and the content itself.
• It is used to create the design and layout of web pages. It can be used as a toolkit
for customizing the layout of different elements.
• The web browser renders every element as a rectangular box according to the
CSS box model. Box-Model has multiple properties in CSS. Some of them are
given below:
• Borders
• margins
• padding
• Content
CSS box –model property
• Border Area: It is the area between the box’s padding and margin. Its
dimensions are given by the width and height of border.
Margin Area: This area consists of space between border and margin. The
dimensions of Margin area are the margin-box width and the margin-box
height. It is useful to separate the element from its neighbors.
Padding Area: It includes the element’s padding. This area is actually the
space around the content area and within the border box. Its dimensions
are given by the width of the padding-box and the height of the padding-
box.
Content Area: This area consists of content like text, image, or other
media content. It is bounded by the content edge and its dimensions are
given by content box width and height.
Web programming css
Adding Styles to HTML
Thank you
Ad

Recommended

Css1
Css1
Pulkit Tanwar
 
Cascading style sheet (css)]
Cascading style sheet (css)]
9574395990
 
Introduction to css
Introduction to css
eShikshak
 
Introduction to CSS
Introduction to CSS
AursalanSayed
 
CSS Introduction
CSS Introduction
Swati Sharma
 
CSS introduction
CSS introduction
CloudTech 
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
AakankshaR
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
priyadharshini murugan
 
Unit iii css and javascript 1
Unit iii css and javascript 1
Jesus Obenita Jr.
 
Introduction to css
Introduction to css
Evolution Network
 
Cascading Style Sheets
Cascading Style Sheets
Marc Steel
 
CSS Basics - Stylesheets and Color
CSS Basics - Stylesheets and Color
Kelly Kellum
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)
Harshita Yadav
 
1 03 - CSS Introduction
1 03 - CSS Introduction
apnwebdev
 
The Dark Arts of CSS
The Dark Arts of CSS
SiddharthBorderwala
 
Css
Css
Anuj Singh Rajput
 
Introducing Cascading Style Sheets
Introducing Cascading Style Sheets
St. Petersburg College
 
Css introduction
Css introduction
AbhishekMondal42
 
Introduction to CSS
Introduction to CSS
Folasade Adedeji
 
Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
Harshil Darji
 
HTML and CSS
HTML and CSS
Ketan Ghumatkar
 
Steph's Html5 and css presentation
Steph's Html5 and css presentation
stephy123123
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp
 
Introduction to the Web and HTML
Introduction to the Web and HTML
SiddharthBorderwala
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last week
Katherine McCurdy-Lapierre, R.G.D.
 
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
utsavsd11
 
Beginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Css Introduction
Css Introduction
SathyaseelanK1
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
Timbal Mayank
 
Web
Web
Sreejith Ramakrishnan
 

More Related Content

What's hot (17)

Unit iii css and javascript 1
Unit iii css and javascript 1
Jesus Obenita Jr.
 
Introduction to css
Introduction to css
Evolution Network
 
Cascading Style Sheets
Cascading Style Sheets
Marc Steel
 
CSS Basics - Stylesheets and Color
CSS Basics - Stylesheets and Color
Kelly Kellum
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)
Harshita Yadav
 
1 03 - CSS Introduction
1 03 - CSS Introduction
apnwebdev
 
The Dark Arts of CSS
The Dark Arts of CSS
SiddharthBorderwala
 
Css
Css
Anuj Singh Rajput
 
Introducing Cascading Style Sheets
Introducing Cascading Style Sheets
St. Petersburg College
 
Css introduction
Css introduction
AbhishekMondal42
 
Introduction to CSS
Introduction to CSS
Folasade Adedeji
 
Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
Harshil Darji
 
HTML and CSS
HTML and CSS
Ketan Ghumatkar
 
Steph's Html5 and css presentation
Steph's Html5 and css presentation
stephy123123
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp
 
Introduction to the Web and HTML
Introduction to the Web and HTML
SiddharthBorderwala
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last week
Katherine McCurdy-Lapierre, R.G.D.
 

Similar to Web programming css (20)

UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
utsavsd11
 
Beginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Css Introduction
Css Introduction
SathyaseelanK1
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
Timbal Mayank
 
Web
Web
Sreejith Ramakrishnan
 
CSS Basics
CSS Basics
WordPress Memphis
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
Css ppt
Css ppt
Nidhi mishra
 
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
balbirnainnain496
 
CSS Introduction
CSS Introduction
Thapar Institute
 
Css
Css
Yudha Arif Budiman
 
Web topic 15 1 basic css layout
Web topic 15 1 basic css layout
CK Yang
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
CSS
CSS
Mallikarjuna G D
 
CSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.E
NavyaEnugala
 
CHAPTER 3_ Getting Started with CSS Module
CHAPTER 3_ Getting Started with CSS Module
ssusera4f8281
 
CSS
CSS
People Strategists
 
CSS.pdf
CSS.pdf
SoniaJoshi25
 
html-css
html-css
Dhirendra Chauhan
 
Css
Css
NIRMAL FELIX
 
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
utsavsd11
 
Beginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
Timbal Mayank
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
balbirnainnain496
 
Web topic 15 1 basic css layout
Web topic 15 1 basic css layout
CK Yang
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
CSS Topic wise Short notes ppt by Navya.E
CSS Topic wise Short notes ppt by Navya.E
NavyaEnugala
 
CHAPTER 3_ Getting Started with CSS Module
CHAPTER 3_ Getting Started with CSS Module
ssusera4f8281
 
Ad

More from Uma mohan (17)

Web technology javascript
Web technology javascript
Uma mohan
 
Web programming xml
Web programming xml
Uma mohan
 
Rdbms ER model
Rdbms ER model
Uma mohan
 
Rdbms 2
Rdbms 2
Uma mohan
 
Rdbms 1
Rdbms 1
Uma mohan
 
Programming in c arrays
Programming in c arrays
Uma mohan
 
Json
Json
Uma mohan
 
Dip
Dip
Uma mohan
 
Dip color image processing
Dip color image processing
Uma mohan
 
Data structure graphs
Data structure graphs
Uma mohan
 
Data structure stack
Data structure stack
Uma mohan
 
Animation
Animation
Uma mohan
 
Data Structure - Elementary Data Organization
Data Structure - Elementary Data Organization
Uma mohan
 
DS Introduction
DS Introduction
Uma mohan
 
Quick sort
Quick sort
Uma mohan
 
Cg introduction
Cg introduction
Uma mohan
 
Computer graphics lab manual
Computer graphics lab manual
Uma mohan
 
Web technology javascript
Web technology javascript
Uma mohan
 
Web programming xml
Web programming xml
Uma mohan
 
Rdbms ER model
Rdbms ER model
Uma mohan
 
Programming in c arrays
Programming in c arrays
Uma mohan
 
Dip color image processing
Dip color image processing
Uma mohan
 
Data structure graphs
Data structure graphs
Uma mohan
 
Data structure stack
Data structure stack
Uma mohan
 
Data Structure - Elementary Data Organization
Data Structure - Elementary Data Organization
Uma mohan
 
DS Introduction
DS Introduction
Uma mohan
 
Cg introduction
Cg introduction
Uma mohan
 
Computer graphics lab manual
Computer graphics lab manual
Uma mohan
 
Ad

Recently uploaded (20)

Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
RAKESH SAJJAN
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Values Education 10 Quarter 1 Module .pptx
Values Education 10 Quarter 1 Module .pptx
JBPafin
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Publishing Your Memoir with Brooke Warner
Publishing Your Memoir with Brooke Warner
Brooke Warner
 
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Rajdeep Bavaliya
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
Nutrition Assessment and Nutrition Education – Unit 4 | B.Sc Nursing 5th Seme...
Nutrition Assessment and Nutrition Education – Unit 4 | B.Sc Nursing 5th Seme...
RAKESH SAJJAN
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
RAKESH SAJJAN
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Values Education 10 Quarter 1 Module .pptx
Values Education 10 Quarter 1 Module .pptx
JBPafin
 
Publishing Your Memoir with Brooke Warner
Publishing Your Memoir with Brooke Warner
Brooke Warner
 
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Rajdeep Bavaliya
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
Nutrition Assessment and Nutrition Education – Unit 4 | B.Sc Nursing 5th Seme...
Nutrition Assessment and Nutrition Education – Unit 4 | B.Sc Nursing 5th Seme...
RAKESH SAJJAN
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 

Web programming css

  • 1. WEB PROGRAMMING Cascading Style Sheets (CSS) Dr.M.UMADEVI ASSISTANT PROFESSOR DEPARTMENT OF CS SACWC CUMBUM
  • 2. Cascading Style Sheets (CSS) • SS (Cascading Style Sheets) is a stylesheet language used to design the webpage to make it attractive. • The reason of using CSS is to simplify the process of making web pages presentable. CSS allows you to apply styles to web pages. • More importantly, CSS enables you to do this independent of the HTML that makes up each web page. • There are three types of CSS which are given below: • Inline CSS • Internal or Embedded CSS • External CSS
  • 3. • Why we learn CSS? Styling has been an essential property for any website since many decades. It increases the standards and overall look of the website which makes it easier for the user to interact with it • Base for web development: HTML and CSS is the basic skill that every web developer should know. It is the basic skill that is required for building a website.
  • 4. • Makes your website look attractive: A website that’s dull and plain will not attract the user most probably, so adding some style would surely make your website presentable to the user. • Makes the design come live: A web developer is responsible in making the design given to him as a live product. CSS is used for styling to develop the design of the website. • Increases user experience of website: A website with a simple yet beautiful UI would help the users to go through the website easily. CSS is used to make the user interface better. • More career opportunities: Since CSS is a basic requirement while learning Web Development, therefor there are abundant career opportunities for it. As a freelancer too you can land up to many projects. •
  • 5. • Basic Format: It is the basic structure of HTML webpage and we use CSS style inside webpage. In a web page, we use internal CSS (i.e. adding CSS code inside <head> tag of HTML code) <!DOCTYPE html> <html> <head> <!-- Head section of web page --> <title></title> <!-- Stylesheet of web page --> <style></style> </head> <body> <!-- Body section of web page --> </body> </html>
  • 6. Style sheet contain one or more CSS Rules body { font-family: Tahoma, Arial, sans-serif; color: black; background: white; margin: 8px; } 4 Selector Property Value Declaration Block
  • 8. CSS Properties Control many style properties of an element: ● Coloring ● Size ● Position ● Visibility ● Many more: (e.g. p: { text-decoration: line-through; }) ● Also used in animation
  • 10. CSS box model • CSS box model is a container which contains multiple properties including borders, margin, padding and the content itself. • It is used to create the design and layout of web pages. It can be used as a toolkit for customizing the layout of different elements. • The web browser renders every element as a rectangular box according to the CSS box model. Box-Model has multiple properties in CSS. Some of them are given below: • Borders • margins • padding • Content
  • 11. CSS box –model property
  • 12. • Border Area: It is the area between the box’s padding and margin. Its dimensions are given by the width and height of border. Margin Area: This area consists of space between border and margin. The dimensions of Margin area are the margin-box width and the margin-box height. It is useful to separate the element from its neighbors. Padding Area: It includes the element’s padding. This area is actually the space around the content area and within the border box. Its dimensions are given by the width of the padding-box and the height of the padding- box. Content Area: This area consists of content like text, image, or other media content. It is bounded by the content edge and its dimensions are given by content box width and height.