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

PPT
PPT
Cascading style sheet (css)]
PDF
Introduction to css
PPTX
Introduction to CSS
PPT
CSS Introduction
PPTX
CSS introduction
PPTX
Cascading Style Sheet (CSS)
ODP
Introduction to css & its attributes with syntax
Cascading style sheet (css)]
Introduction to css
Introduction to CSS
CSS Introduction
CSS introduction
Cascading Style Sheet (CSS)
Introduction to css & its attributes with syntax

What's hot (17)

PPTX
Unit iii css and javascript 1
PPSX
Introduction to css
PPT
Cascading Style Sheets
PPTX
CSS Basics - Stylesheets and Color
PPTX
Cascading style sheets (CSS)
PPTX
1 03 - CSS Introduction
PDF
The Dark Arts of CSS
PPTX
Introducing Cascading Style Sheets
PPTX
Css introduction
PPTX
Introduction to CSS
PPTX
Cascading Style Sheets (CSS)
PPTX
HTML and CSS
PPSX
Steph's Html5 and css presentation
PPT
Cascading Style Sheets (CSS) help
PDF
Introduction to the Web and HTML
PPTX
Week 12 CSS - Review from last week
Unit iii css and javascript 1
Introduction to css
Cascading Style Sheets
CSS Basics - Stylesheets and Color
Cascading style sheets (CSS)
1 03 - CSS Introduction
The Dark Arts of CSS
Introducing Cascading Style Sheets
Css introduction
Introduction to CSS
Cascading Style Sheets (CSS)
HTML and CSS
Steph's Html5 and css presentation
Cascading Style Sheets (CSS) help
Introduction to the Web and HTML
Week 12 CSS - Review from last week
Ad

Similar to Web programming css (20)

PPTX
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
PPT
Web design-workflow
PDF
Cascading Style Sheets for web development
PPTX
Unit-3-CSS-BWT.pptx
PDF
CSS Bootstrap.pdf
PPTX
Introduction to CSS.pptx web for web web
PPTX
Unit 2 WT-CSS.pptx web technology project
PDF
Vskills certified css designer Notes
PPTX
Web technologies-course 04.pptx
PPTX
Introduction to PrintCSS.live
PPTX
uptu web technology unit 2 Css
ODP
Srijan presentation on CSS
PPTX
Introduction to Wed System And Technologies (1).pptx
PPTX
PPTX
lec11_CSS.pptx web page description desi
PPTX
Cascading Style Sheets(CSS).pptx by kj frm changa
PPTX
PDF
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdf
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
Web design-workflow
Cascading Style Sheets for web development
Unit-3-CSS-BWT.pptx
CSS Bootstrap.pdf
Introduction to CSS.pptx web for web web
Unit 2 WT-CSS.pptx web technology project
Vskills certified css designer Notes
Web technologies-course 04.pptx
Introduction to PrintCSS.live
uptu web technology unit 2 Css
Srijan presentation on CSS
Introduction to Wed System And Technologies (1).pptx
lec11_CSS.pptx web page description desi
Cascading Style Sheets(CSS).pptx by kj frm changa
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdf
Ad

More from Uma mohan (17)

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

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Cell Structure & Organelles in detailed.
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Business Ethics Teaching Materials for college
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Pre independence Education in Inndia.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPH.pptx obstetrics and gynecology in nursing
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Cell Structure & Organelles in detailed.
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Business Ethics Teaching Materials for college
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pre independence Education in Inndia.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Renaissance Architecture: A Journey from Faith to Humanism
Final Presentation General Medicine 03-08-2024.pptx
Cell Types and Its function , kingdom of life
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
RMMM.pdf make it easy to upload and study
Module 4: Burden of Disease Tutorial Slides S2 2025
O7-L3 Supply Chain Operations - ICLT Program
01-Introduction-to-Information-Management.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Anesthesia in Laparoscopic Surgery in India

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.