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
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
PDF
What Is Coercive Control? Understanding and Recognizing Hidden Abuse
PDF
LDMMIA Reiki Yoga S2 L3 Vod Sample Preview
PPTX
Software Engineering BSC DS UNIT 1 .pptx
PPTX
Introduction and Scope of Bichemistry.pptx
PPTX
IMMUNIZATION PROGRAMME pptx
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PPTX
How to Manage Global Discount in Odoo 18 POS
PDF
UTS Health Student Promotional Representative_Position Description.pdf
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
PPTX
Odoo 18 Sales_ Managing Quotation Validity
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PPTX
Skill Development Program For Physiotherapy Students by SRY.pptx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
How to Manage Bill Control Policy in Odoo 18
PDF
Types of Literary Text: Poetry and Prose
PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PPTX
Congenital Hypothyroidism pptx
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
What Is Coercive Control? Understanding and Recognizing Hidden Abuse
LDMMIA Reiki Yoga S2 L3 Vod Sample Preview
Software Engineering BSC DS UNIT 1 .pptx
Introduction and Scope of Bichemistry.pptx
IMMUNIZATION PROGRAMME pptx
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
How to Manage Global Discount in Odoo 18 POS
UTS Health Student Promotional Representative_Position Description.pdf
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Odoo 18 Sales_ Managing Quotation Validity
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
Skill Development Program For Physiotherapy Students by SRY.pptx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
How to Manage Bill Control Policy in Odoo 18
Types of Literary Text: Poetry and Prose
The Final Stretch: How to Release a Game and Not Die in the Process.
Congenital Hypothyroidism pptx

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.