SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
Amit Kumar Singh
 
html-css
html-csshtml-css
html-css
Dhirendra Chauhan
 
Html ppt
Html pptHtml ppt
Html ppt
Iblesoft
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
Michael Jhon
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
Webtech Learning
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
Css
CssCss
Css
Hemant Saini
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp
 
Html
HtmlHtml
Html
Nandakumar Ganapathy
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Html ppt
Html pptHtml ppt
Html ppt
santosh lamba
 
CSS
CSSCSS
CSS
seedinteractive
 
Intro Html
Intro HtmlIntro Html
Intro Html
Chidanand Byahatti
 
Css Ppt
Css PptCss Ppt
Css Ppt
Hema Prasanth
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
Webtech Learning
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
shabab shihan
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
Swati Sharma
 

Similar to Css (20)

CSS
CSSCSS
CSS
People Strategists
 
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
JJFajardo1
 
Cascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSSCascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
CSS
CSSCSS
CSS
DivyaKS12
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
wubiederebe1
 
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptxChapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
eyasu6
 
Lecture-6.pptx
Lecture-6.pptxLecture-6.pptx
Lecture-6.pptx
vishal choudhary
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
Css Founder
 
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
Binu Paul
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
Seble Nigussie
 
Css
CssCss
Css
actacademy
 
Css
CssCss
Css
actacademy
 
CSS Presentation Notes.pptx
CSS Presentation Notes.pptxCSS Presentation Notes.pptx
CSS Presentation Notes.pptx
VineetaSingh713208
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
Styling text using css
Styling text using cssStyling text using css
Styling text using css
Daniel Francis
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
RohanMistry15
 
Css
CssCss
Css
Er. Nawaraj Bhandari
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
David Weliver
David WeliverDavid Weliver
David Weliver
Philip Taylor
 
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
JJFajardo1
 
Cascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSSCascading style sheet, CSS Box model, Table in CSS
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
wubiederebe1
 
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptxChapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
eyasu6
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
Css Founder
 
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
Binu Paul
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
v5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptxv5-introduction to html-css-210321161444.pptx
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
Styling text using css
Styling text using cssStyling text using css
Styling text using css
Daniel Francis
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
RohanMistry15
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
Ad

Recently uploaded (20)

YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
Studying Drama: Definition, types and elements
Studying Drama: Definition, types and elementsStudying Drama: Definition, types and elements
Studying Drama: Definition, types and elements
AbdelFattahAdel2
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
Open Access: Revamping Library Learning Resources.
Open Access: Revamping Library Learning Resources.Open Access: Revamping Library Learning Resources.
Open Access: Revamping Library Learning Resources.
Rishi Bankim Chandra Evening College, Naihati, North 24 Parganas, West Bengal, India
 
Vitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd year
Vitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd yearVitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd year
Vitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd year
ARUN KUMAR
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-26-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-26-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-26-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-26-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Diabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomicDiabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomic
Pankaj Patawari
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
High Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptxHigh Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptx
Ayush Srivastava
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Studying Drama: Definition, types and elements
Studying Drama: Definition, types and elementsStudying Drama: Definition, types and elements
Studying Drama: Definition, types and elements
AbdelFattahAdel2
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
Vitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd year
Vitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd yearVitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd year
Vitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd year
ARUN KUMAR
 
Diabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomicDiabetic neuropathy peripheral autonomic
Diabetic neuropathy peripheral autonomic
Pankaj Patawari
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
High Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptxHigh Performance Liquid Chromatography .pptx
High Performance Liquid Chromatography .pptx
Ayush Srivastava
 
Ad

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