SlideShare a Scribd company logo
Css ppt
PRESENTATION SUMMARY
-> What is CSS ?
-> CSS and HTML
-> The Box Model.
-> Style Sheet Implementation.
-> CSS Rule Structure.
-> HTML and DIV’s.
-> Common CSS properties.
WHAT IS CSS ?
Css stands for cascading style sheet.
It is not a language. It is a pat of
design. CSS is a heart of HTML.
Typical CSS file is a text file with an
extension “.CSS” and contain a
series of commands.
HTML WITHOUT CSS:-
“Html without CSS is like a piece of candy without
a pretty wrapper.”
Without CSS, HTML elements typically flow from
top to bottom of the page and position
themselves to the left by default .
With CSS help, we can create containers or DIV’s
to better organize content and make a Web page
visually appealing.
CSS AND HTML:-
(a)HTML and CSS work together to
produce beautiful and functional Web
sites.
(b) HTML= Structure
(c) CSS= Style
THE BOX MODEL:-
CSS works on the box model. A typical
Web page consists of many boxes joined
together from top to bottom . These boxes
can be stacked nested, and float.
ATTACHING A STYLE SHEET:-
Attach a style sheet to a page by adding the code to the
<head>
Section of the HTML page. There are 3 ways to attach CSS
to a page:
1.External style sheet:- Best used to control styling
on multiple pages.
<link href=“css/style.css” type=“text/css”
rel=“stylesheet”/>
2.Internal style sheet:-Best used to control
styling in the page.
<style type=“type=“text/css”>
H1 { color : red }
</style>
3.Inline Style Sheet:- CSS is not attached in the
<header> but is used directly within HTML tages.
<p style=“color : red”> Some Text </p>
CSS RULE STRUCTURE:-
A CSS RULE is made up of a selector and a declaration. A
declaration consists of property and value.
Selector { property : value ; }
Declaration
SELECTOR:-
A selector, here in green, is often an element of
HTML.
body { property : value; }
h1 { property : value; }
em { property : value; }
p { property : value; }
PROPERTIES AND VALUES:-
body { background ; purple; }
h1 { color : green; }
h2 { font-size: large ; }
p { color : #FFF ; }
Properties and Values tell an HTML elements how to display.
body
{
background : purple ;
color : green ;
}
COMMENT IN CSS:-
. Explain the purpose of the coding.
. Help others read and understand the code.
. Server as a reminder to you for what it all
means.
. Starts with /* and ends with */.
TYPICAL WEB PAGE:-
TYPICAL WEB PAGE (HTML)
Typical HTML Web page is made up of containers(boxes)
or DIV’s. Each DIV is assigned an ID or a class.
<div id =“ container”>
<div id=“ header”> Insert Tittle </div>
<div id=“ main”> content
<div id=“ menu ”> content </div>
</div>
<div id=“ footer ”> content </div>
</div>
TYPICAL WEB PAGE (CSS)
The CSS file users t he same DIV / I D / C LASS
names as the HTML and uses them to style
the elements.
# container { property : value ; }
# menu { property : value ; }
# main { property : value ; }
# footer { property : value ; }
IDS AND CLASSES:-
. IDs (#) are unique and can only be used once on
the page.
. Classes ( . ) can be used as many times needed.
HTML codes:-
<h1 id =“ main heading”> Names</h1>
<p class =“name”>xyz</p>
CSS codes:-
#main heading { color : green}
.name { color :red}
CSS BOX PROPERTIES:-
. Background-color
. Width
. Padding
. Margin
. Border-width
. Border color
. Border-style
. Background-image
BACKGROUND COLOR:-
The background-color property specifies
the background color of an element.
Example
body {
background-color: light blue;
}
BACKGROUND IMAGE
The background-image property specifies an image
to use as the background of an element.
By default, the image is repeated so it covers the
entire element.
Example:-
body {
background-image: url("paper.gif");
}
CSS BORDER STYLE:-
The border-style property specifies what kind of border to
display.
The following values are allowed:
-dotted - Defines a dotted border
-dashed - Defines a dashed border
-solid - Defines a solid border
-double - Defines a double border
-none - Defines no border
-hidden - Defines a hidden border
CSS BORDER COLOR:-
The border-color property is used to set the color of the
four borders.
The color can be set by:
name - specify a color name, like "red"
Hex - specify a hex value, like "#ff0000"
Example
p.one {
border-style: solid;
border-color: red;
}
CSS HEIGHT AND WIDTH:-
The height and width properties are used to set the
height and width of an element.
The height and width can be set to auto (this is
default. Means that the browser calculates the
height and width), or be specified in length
values, like px, cm, etc., or in percent (%) of the
containing block.
Example:-
div {
width: 500px;
height: 100px;
border: 3px solid #73AD21;
}
CSS MARGIN:-
The CSS margin properties set the size of the white
space OUTSIDE the border.
CSS has properties for specifying the margin for each side
of an element:
-margin-top
-margin-right
-margin-bottom
-margin-left
CSS PADDING:-
The CSS padding properties define the white space between the
element content and the element border.
The padding clears an area around the content (inside the
border) of an element.
CSS has properties for specifying the padding for each side of an element:
-padding-top
-padding-right
-padding-bottom
-padding-left
CSS FONTS:-
The CSS font properties define the font family, boldness,
size, and the style of a text.
(a) CSS Font Families:-
In CSS, there are two types of font family names:
generic family - a group of font families with a similar look
(like "Serif" or "Monospace")
font family - a specific font family (like "Times New
Roman" or "Arial")
(b) Font Family:-
The font family of a text is set with the font-
family property.
Example
p {
font-family: "Times New Roman", Times, serif;
}
(c) Font Style:-
The font-style property is mostly used to specify italic text.
This property has three values:
normal - The text is shown normally
italic - The text is shown in italics
Example:-
p.normal {
font-style: normal;
}
p.italic {
font-style: italic;
}
(d) Font Size:-
The font-size property sets the size of the text.
Always use the proper HTML tags, like <h1> -
<h6> for headings and <p> for paragraphs.
ADVANTAGES OF CSS:-
-Easier to maintain and update.
-Greater consistency in design.
-More formatting options.
-Lightweight code.
-Faster download times.
-Search engine optimization benefits.
-Ease of presenting different styles to different
viewers.
-Greater accessibility.
Thank you

More Related Content

PPTX
Introduction to CSS
PPTX
Cascading style sheet
PPT
Cascading Style Sheets (CSS) help
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
cascading style sheet ppt
ODP
CSS Basics
PDF
Introduction to HTML and CSS
Introduction to CSS
Cascading style sheet
Cascading Style Sheets (CSS) help
Introduction to Cascading Style Sheets (CSS)
cascading style sheet ppt
CSS Basics
Introduction to HTML and CSS

What's hot (20)

PPT
Css lecture notes
PDF
HTML and CSS crash course!
PPT
CSS Basics
PDF
CSS Selectors
PPTX
Css backgrounds
PPTX
PDF
CSS Day: CSS Grid Layout
PPSX
Introduction to css
PPTX
PDF
Intro to HTML and CSS basics
PPTX
Html & CSS
PPT
Html & Css presentation
PDF
PPTX
Basic HTML
PPTX
Html5 semantics
PDF
Html / CSS Presentation
PPTX
Html training slide
PPTX
Beginners css tutorial for web designers
PPT
Introduction to CSS
Css lecture notes
HTML and CSS crash course!
CSS Basics
CSS Selectors
Css backgrounds
CSS Day: CSS Grid Layout
Introduction to css
Intro to HTML and CSS basics
Html & CSS
Html & Css presentation
Basic HTML
Html5 semantics
Html / CSS Presentation
Html training slide
Beginners css tutorial for web designers
Introduction to CSS
Ad

Viewers also liked (20)

PPT
Css Ppt
PPT
Html Ppt
PPTX
Complete Lecture on Css presentation
ODP
PPTX
Week 12 CSS - Review from last week
PPTX
HTML, CSS and Java Scripts Basics
PDF
HTML CSS Basics
PPT
PDF
Css from scratch
PDF
OBIEE: How to change dashboard background color or add background image
PPTX
About Best friends - HTML, CSS and JS
PPTX
Hushang Gaikwad
PPT
Cascading Style Sheet
PPTX
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
PPTX
Web designing
PPTX
Introduction to HTML5 and CSS3 (revised)
PPTX
Cascading Style Sheet (CSS)
PDF
Modular HTML, CSS, & JS Workshop
PPTX
HTML/CSS/java Script/Jquery
Css Ppt
Html Ppt
Complete Lecture on Css presentation
Week 12 CSS - Review from last week
HTML, CSS and Java Scripts Basics
HTML CSS Basics
Css from scratch
OBIEE: How to change dashboard background color or add background image
About Best friends - HTML, CSS and JS
Hushang Gaikwad
Cascading Style Sheet
HTML, CSS And JavaScript Training Institute in Ambala ! Batra Computer Centre
Web designing
Introduction to HTML5 and CSS3 (revised)
Cascading Style Sheet (CSS)
Modular HTML, CSS, & JS Workshop
HTML/CSS/java Script/Jquery
Ad

Similar to Css ppt (20)

PPTX
CSS Topic wise Short notes ppt by Navya.E
PPTX
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
PDF
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
PPTX
PPTX
CSS Presentation Notes.pptx
PDF
2 introduction css
PDF
Unit 3 (it workshop).pptx
PPTX
Web topic 15 1 basic css layout
PPTX
Cordova training - Day 2 Introduction to CSS 3
PPTX
v5-introduction to html-css-210321161444.pptx
PDF
CSS notes
PPTX
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
PPTX
Unit - 3 CSS(Cascading Style Sheet).pptx
PPT
PDF
CSS.pdf
PPTX
CSS tutorial chapter 1
PPTX
CSS Basics part One
PPTX
Web Programming-css.pptx
PPTX
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC
CSS Topic wise Short notes ppt by Navya.E
UNIT 3WOP fgfufhbuiibpvihbvpihivbhibvipuuvbiuvboi
CascadingStyleSheets in ONESHOT By DeathCodeYT .pdf
CSS Presentation Notes.pptx
2 introduction css
Unit 3 (it workshop).pptx
Web topic 15 1 basic css layout
Cordova training - Day 2 Introduction to CSS 3
v5-introduction to html-css-210321161444.pptx
CSS notes
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
Unit - 3 CSS(Cascading Style Sheet).pptx
CSS.pdf
CSS tutorial chapter 1
CSS Basics part One
Web Programming-css.pptx
HTML-CSS-QUARTER4 COMPUTER PROGRAMMING SSC

Recently uploaded (20)

PDF
High-frequency high-voltage transformer outline drawing
PDF
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
PDF
Wio LTE JP Version v1.3b- 4G, Cat.1, Espruino Compatible\202001935, PCBA;Wio ...
PPTX
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
PDF
Africa 2025 - Prospects and Challenges first edition.pdf
DOCX
The story of the first moon landing.docx
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PPT
UNIT I- Yarn, types, explanation, process
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PPTX
An introduction to AI in research and reference management
PPTX
mahatma gandhi bus terminal in india Case Study.pptx
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PDF
Benefits_of_Cast_Aluminium_Doors_Presentation.pdf
PDF
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
PPTX
Fundamental Principles of Visual Graphic Design.pptx
PPT
Machine printing techniques and plangi dyeing
PPTX
12. Community Pharmacy and How to organize it
PDF
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
High-frequency high-voltage transformer outline drawing
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
Wio LTE JP Version v1.3b- 4G, Cat.1, Espruino Compatible\202001935, PCBA;Wio ...
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
Africa 2025 - Prospects and Challenges first edition.pdf
The story of the first moon landing.docx
Tenders & Contracts Works _ Services Afzal.pptx
UNIT I- Yarn, types, explanation, process
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
An introduction to AI in research and reference management
mahatma gandhi bus terminal in india Case Study.pptx
DOC-20250430-WA0014._20250714_235747_0000.pptx
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
Benefits_of_Cast_Aluminium_Doors_Presentation.pdf
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
Fundamental Principles of Visual Graphic Design.pptx
Machine printing techniques and plangi dyeing
12. Community Pharmacy and How to organize it
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions

Css ppt

  • 2. PRESENTATION SUMMARY -> What is CSS ? -> CSS and HTML -> The Box Model. -> Style Sheet Implementation. -> CSS Rule Structure. -> HTML and DIV’s. -> Common CSS properties.
  • 3. WHAT IS CSS ? Css stands for cascading style sheet. It is not a language. It is a pat of design. CSS is a heart of HTML. Typical CSS file is a text file with an extension “.CSS” and contain a series of commands.
  • 4. HTML WITHOUT CSS:- “Html without CSS is like a piece of candy without a pretty wrapper.” Without CSS, HTML elements typically flow from top to bottom of the page and position themselves to the left by default . With CSS help, we can create containers or DIV’s to better organize content and make a Web page visually appealing.
  • 5. CSS AND HTML:- (a)HTML and CSS work together to produce beautiful and functional Web sites. (b) HTML= Structure (c) CSS= Style
  • 6. THE BOX MODEL:- CSS works on the box model. A typical Web page consists of many boxes joined together from top to bottom . These boxes can be stacked nested, and float.
  • 7. ATTACHING A STYLE SHEET:- Attach a style sheet to a page by adding the code to the <head> Section of the HTML page. There are 3 ways to attach CSS to a page: 1.External style sheet:- Best used to control styling on multiple pages. <link href=“css/style.css” type=“text/css” rel=“stylesheet”/>
  • 8. 2.Internal style sheet:-Best used to control styling in the page. <style type=“type=“text/css”> H1 { color : red } </style> 3.Inline Style Sheet:- CSS is not attached in the <header> but is used directly within HTML tages. <p style=“color : red”> Some Text </p>
  • 9. CSS RULE STRUCTURE:- A CSS RULE is made up of a selector and a declaration. A declaration consists of property and value. Selector { property : value ; } Declaration
  • 10. SELECTOR:- A selector, here in green, is often an element of HTML. body { property : value; } h1 { property : value; } em { property : value; } p { property : value; }
  • 11. PROPERTIES AND VALUES:- body { background ; purple; } h1 { color : green; } h2 { font-size: large ; } p { color : #FFF ; } Properties and Values tell an HTML elements how to display. body { background : purple ; color : green ; }
  • 12. COMMENT IN CSS:- . Explain the purpose of the coding. . Help others read and understand the code. . Server as a reminder to you for what it all means. . Starts with /* and ends with */.
  • 14. TYPICAL WEB PAGE (HTML) Typical HTML Web page is made up of containers(boxes) or DIV’s. Each DIV is assigned an ID or a class. <div id =“ container”> <div id=“ header”> Insert Tittle </div> <div id=“ main”> content <div id=“ menu ”> content </div> </div> <div id=“ footer ”> content </div> </div>
  • 15. TYPICAL WEB PAGE (CSS) The CSS file users t he same DIV / I D / C LASS names as the HTML and uses them to style the elements. # container { property : value ; } # menu { property : value ; } # main { property : value ; } # footer { property : value ; }
  • 16. IDS AND CLASSES:- . IDs (#) are unique and can only be used once on the page. . Classes ( . ) can be used as many times needed. HTML codes:- <h1 id =“ main heading”> Names</h1> <p class =“name”>xyz</p> CSS codes:- #main heading { color : green} .name { color :red}
  • 17. CSS BOX PROPERTIES:- . Background-color . Width . Padding . Margin . Border-width . Border color . Border-style . Background-image
  • 18. BACKGROUND COLOR:- The background-color property specifies the background color of an element. Example body { background-color: light blue; }
  • 19. BACKGROUND IMAGE The background-image property specifies an image to use as the background of an element. By default, the image is repeated so it covers the entire element. Example:- body { background-image: url("paper.gif"); }
  • 20. CSS BORDER STYLE:- The border-style property specifies what kind of border to display. The following values are allowed: -dotted - Defines a dotted border -dashed - Defines a dashed border -solid - Defines a solid border -double - Defines a double border -none - Defines no border -hidden - Defines a hidden border
  • 21. CSS BORDER COLOR:- The border-color property is used to set the color of the four borders. The color can be set by: name - specify a color name, like "red" Hex - specify a hex value, like "#ff0000" Example p.one { border-style: solid; border-color: red; }
  • 22. CSS HEIGHT AND WIDTH:- The height and width properties are used to set the height and width of an element. The height and width can be set to auto (this is default. Means that the browser calculates the height and width), or be specified in length values, like px, cm, etc., or in percent (%) of the containing block. Example:- div { width: 500px; height: 100px; border: 3px solid #73AD21; }
  • 23. CSS MARGIN:- The CSS margin properties set the size of the white space OUTSIDE the border. CSS has properties for specifying the margin for each side of an element: -margin-top -margin-right -margin-bottom -margin-left
  • 24. CSS PADDING:- The CSS padding properties define the white space between the element content and the element border. The padding clears an area around the content (inside the border) of an element. CSS has properties for specifying the padding for each side of an element: -padding-top -padding-right -padding-bottom -padding-left
  • 25. CSS FONTS:- The CSS font properties define the font family, boldness, size, and the style of a text. (a) CSS Font Families:- In CSS, there are two types of font family names: generic family - a group of font families with a similar look (like "Serif" or "Monospace") font family - a specific font family (like "Times New Roman" or "Arial")
  • 26. (b) Font Family:- The font family of a text is set with the font- family property. Example p { font-family: "Times New Roman", Times, serif; }
  • 27. (c) Font Style:- The font-style property is mostly used to specify italic text. This property has three values: normal - The text is shown normally italic - The text is shown in italics Example:- p.normal { font-style: normal; } p.italic { font-style: italic; }
  • 28. (d) Font Size:- The font-size property sets the size of the text. Always use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs.
  • 29. ADVANTAGES OF CSS:- -Easier to maintain and update. -Greater consistency in design. -More formatting options. -Lightweight code. -Faster download times. -Search engine optimization benefits. -Ease of presenting different styles to different viewers. -Greater accessibility.