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

More Related Content

What's hot (17)

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

Similar to Web programming css (20)

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

More from Uma mohan (17)

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

Recently uploaded (20)

PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PPTX
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PPT
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
Horarios de distribución de agua en julio
pegazohn1978
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Introduction to Indian Writing in English
Trushali Dodiya
 
infertility, types,causes, impact, and management
Ritu480198
 
epi editorial commitee meeting presentation
MIPLM
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
Controller Request and Response in Odoo18
Celine George
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
Introduction presentation of the patentbutler tool
MIPLM
 
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 

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.