SlideShare une entreprise Scribd logo
1  sur  20
U.SHANMUGARAJAN
I –M.Sc (CS)
1
8-Apr-17
What is CSS
 Cascading Style Sheets are known as CSS.
 CSS handles the look and feel part of a web
page. Using CSS, we can control the color of
the text, the style of fonts, the spacing
between paragraphs, how columns are sized
and laid out, what background images or
colors are used and etc.,
2
Advantages of CSS
 CSS saves time
 Easy maintenance
 Multiple Device Compatibility
 Pages load faster
 Platform Independence
3
CSS Versions
 CSS1 was came out in Dec 1996. This version
describes the CSS language as well as a
simple visual formatting model for all the HTML
tags.
 CSS2 was came out in May 1998.This version
adds support for media-specific style sheets
e.g. printers, element positioning and tables.
 CSS3 was came out in June 1999.This version
adds new features in color, Transform,
rounded corners
4
Creating and Applying Styles
 There are three ways of inserting a style sheet:
 Inline (HTML Tags)
 Internal Style sheets
 External Style sheets
5
Inline styles
 An inline style may be used to apply a unique
style for a single element.
 To use inline styles, add the style attribute to
the relevant element. The style attribute can
contain any CSS property.
 Example
<h1 style="color:blue;margin-left:30px;">This is a heading</h1>
6
Internal Style Sheet
 An internal style sheet may be used if one
single page has a unique style.
 Internal styles are defined within the <style>
element, inside the <head> section of an
HTML page:
 This makes it easy to apply styles like classes
or id's in order to reuse the code.
7
example
<head>
<style>
body {
background-color: Silver;
}
h1 {
color: red;
margin-left: 40px;
}
</style>
</head>
8
External style sheets
 With an external style sheet, you can change
the look of an entire website by changing just
one file.
 Each page must include a reference to the
external style sheet file inside the <link>
element. The <link> element goes inside the
<head> section.
<link rel="stylesheet" type="text/css" href="mystyle.css"
9
Style Builder
 Style Builder is Microsoft’s way to quickly
apply styles to our web documents.
 It’s a dialog box with a number of screens that
allow us to modify the appearance of text and
objects in web documents.
10
Applying Styles using style Builder
 Highlight the item where we want to apply the
style.
 Right click and select Build style.
 Change the style settings to any desired
setting within the style builder
 Select OK to apply style.
11
Style Builder
 The dialog box has the eight types of styles .
1) Font 5) Layout
2) Background 6) Edges
3) Text 7) Lists
4) Position 8) Other
12
Style Builder
13
CSS Basic Syntax
selector { property:value; property:value; }
selector,selector { property:value; }
selector.class { property:value }
selector#id { property:value }
14
CSS-Text
Property name example Possible values
Color color: value; color name, hexadecimal
number
Letter Spacing letter-spacing: value; normal, Length
Text Align text-align: value; left, right, center, justify
Text Decoration text-decoration: value; None, underline, overline,
line through, blink
Text Transform text-transform: value; None, capitalize, lowercase,
uppercase
Word Spacing word-spacing: value; Normal, length
15
CSS-Font
Property name example Possible values
Font Size font-size: value; length
Font Style font-style: value; normal, italic, oblique
Font Variant font-variant: value; normal, small-caps
Font Weight Font-weight: value; Lighter, normal, 100, 200,
300, 400, 500, 600, 700,
800, 900, bold, bolder
16
CSS-Margin
Property name example
margin margin:10px
margin:10px 15px 10px 15px
margin-bottom margin-bottom:10px
margin-top margin-top:10px
margin-left margin-left:10px
margin-right margin-right:10px
17
CSS-Border
Property name example
border border: 1px solid #333333;
border-color border-color: red;
border-style border-style: value;
Values be dashed, dotted, double, groove,
hidden, inset, none, outset, ridge, solid
border-width border-width: value;
18
CSS Anchors and Links <a>
Property name and description example
a:link
sets the color of a link when no event is
occurred
a:link {color: #009900;}
a:visited
Sets the color of a link when the user has
already visited
a:visited {color: #999999;}
a:hover
sets the color of a link when user places
their mouse pointer over the link
a:hover {color: #333333;}
a:focus
same purpose as the last one, but this one
is for users that are not using a mouse
and are tabbing through the links via there
keyboards tab key
a:focus {color: #333333;}
19
THANK YOU
20

Contenu connexe

Tendances (20)

CSS
CSSCSS
CSS
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
html-css
html-csshtml-css
html-css
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
CSS
CSSCSS
CSS
 
Html & CSS
Html & CSSHtml & CSS
Html & CSS
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Css
CssCss
Css
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
CSS
CSSCSS
CSS
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
Css
CssCss
Css
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
 
Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 

Similaire à Css

Similaire à Css (20)

HTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptxHTML to CSS Basics Exer 2.pptx
HTML to CSS Basics Exer 2.pptx
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
 
Lecture-6.pptx
Lecture-6.pptxLecture-6.pptx
Lecture-6.pptx
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Css
CssCss
Css
 
Css
CssCss
Css
 
CSS Presentation Notes.pptx
CSS Presentation Notes.pptxCSS Presentation Notes.pptx
CSS Presentation Notes.pptx
 
Styling text using css
Styling text using cssStyling text using css
Styling text using css
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
 
Css
CssCss
Css
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
David Weliver
David WeliverDavid Weliver
David Weliver
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
Css training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentialsCss training tutorial css3 &amp; css4 essentials
Css training tutorial css3 &amp; css4 essentials
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Cascstylesheets
CascstylesheetsCascstylesheets
Cascstylesheets
 
Introduction of css
Introduction of cssIntroduction of css
Introduction of css
 

Dernier

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 

Dernier (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Css

  • 2. What is CSS  Cascading Style Sheets are known as CSS.  CSS handles the look and feel part of a web page. Using CSS, we can control the color of the text, the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what background images or colors are used and etc., 2
  • 3. Advantages of CSS  CSS saves time  Easy maintenance  Multiple Device Compatibility  Pages load faster  Platform Independence 3
  • 4. CSS Versions  CSS1 was came out in Dec 1996. This version describes the CSS language as well as a simple visual formatting model for all the HTML tags.  CSS2 was came out in May 1998.This version adds support for media-specific style sheets e.g. printers, element positioning and tables.  CSS3 was came out in June 1999.This version adds new features in color, Transform, rounded corners 4
  • 5. Creating and Applying Styles  There are three ways of inserting a style sheet:  Inline (HTML Tags)  Internal Style sheets  External Style sheets 5
  • 6. Inline styles  An inline style may be used to apply a unique style for a single element.  To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.  Example <h1 style="color:blue;margin-left:30px;">This is a heading</h1> 6
  • 7. Internal Style Sheet  An internal style sheet may be used if one single page has a unique style.  Internal styles are defined within the <style> element, inside the <head> section of an HTML page:  This makes it easy to apply styles like classes or id's in order to reuse the code. 7
  • 8. example <head> <style> body { background-color: Silver; } h1 { color: red; margin-left: 40px; } </style> </head> 8
  • 9. External style sheets  With an external style sheet, you can change the look of an entire website by changing just one file.  Each page must include a reference to the external style sheet file inside the <link> element. The <link> element goes inside the <head> section. <link rel="stylesheet" type="text/css" href="mystyle.css" 9
  • 10. Style Builder  Style Builder is Microsoft’s way to quickly apply styles to our web documents.  It’s a dialog box with a number of screens that allow us to modify the appearance of text and objects in web documents. 10
  • 11. Applying Styles using style Builder  Highlight the item where we want to apply the style.  Right click and select Build style.  Change the style settings to any desired setting within the style builder  Select OK to apply style. 11
  • 12. Style Builder  The dialog box has the eight types of styles . 1) Font 5) Layout 2) Background 6) Edges 3) Text 7) Lists 4) Position 8) Other 12
  • 14. CSS Basic Syntax selector { property:value; property:value; } selector,selector { property:value; } selector.class { property:value } selector#id { property:value } 14
  • 15. CSS-Text Property name example Possible values Color color: value; color name, hexadecimal number Letter Spacing letter-spacing: value; normal, Length Text Align text-align: value; left, right, center, justify Text Decoration text-decoration: value; None, underline, overline, line through, blink Text Transform text-transform: value; None, capitalize, lowercase, uppercase Word Spacing word-spacing: value; Normal, length 15
  • 16. CSS-Font Property name example Possible values Font Size font-size: value; length Font Style font-style: value; normal, italic, oblique Font Variant font-variant: value; normal, small-caps Font Weight Font-weight: value; Lighter, normal, 100, 200, 300, 400, 500, 600, 700, 800, 900, bold, bolder 16
  • 17. CSS-Margin Property name example margin margin:10px margin:10px 15px 10px 15px margin-bottom margin-bottom:10px margin-top margin-top:10px margin-left margin-left:10px margin-right margin-right:10px 17
  • 18. CSS-Border Property name example border border: 1px solid #333333; border-color border-color: red; border-style border-style: value; Values be dashed, dotted, double, groove, hidden, inset, none, outset, ridge, solid border-width border-width: value; 18
  • 19. CSS Anchors and Links <a> Property name and description example a:link sets the color of a link when no event is occurred a:link {color: #009900;} a:visited Sets the color of a link when the user has already visited a:visited {color: #999999;} a:hover sets the color of a link when user places their mouse pointer over the link a:hover {color: #333333;} a:focus same purpose as the last one, but this one is for users that are not using a mouse and are tabbing through the links via there keyboards tab key a:focus {color: #333333;} 19