SlideShare a Scribd company logo
CSS
Cascading Style Sheet
WHAT IS CSS?
CSS stands for “Cascading Style Sheets”
Cascading refers to the procedure that determines which style will apply
to a certain section, if you have more than one style rule.
Style how you want a certain part of your page to look. You can set
things like color, margins, font, etc for things like tables, paragraphs,
and headings.
Sheets the “sheets” are like templates, or a set of rules, for determining how
the webpage will look.
CSS is a stylesheet language used to describe the presentation of a document
written in HTML or XML.
Why Use CSS?
• CSS is used to define styles for your web
pages, including the design, layout and
variations in display for different devices
and screen sizes.
• A web application will contains hundreds of web pages, which are created
using HTML.
• Formatting these HTML pages will be a laborious process, as
formatting elements need to be applied to each and every page.
• CSS saves lots of work as we can change the appearance and layout of all
the web pages by editing just one single CSS file.
Advantages
CSS Syntax
• A CSS rule-set consists of a selector and a declaration
block:
• The selector points to the HTML element you
want to style.
• The declaration block contains one or more declarations
separated by semicolons.
• Each declaration includes a CSS property name and a value,
separated by a colon.
• Multiple CSS declarations are separated with semicolons, and
declaration blocks are surrounded by curly braces.
Example
In this example all <p> elements will be center-aligned, with a
red text color:
p {
color : red ;
text-align : center;
}
Example Explained
•p is a selector in CSS .
•color is a property, and red is the property value
•text-align is a property, and center is the property value
CSS Example
CSS Syntax Rules
Rule have two parts - Selector and declaration.
Selector The HTML element you want to add style to.
<p> <h1> <table> etc
Declaration The statement of style for that element. Made up of
property andvalue.
Property
Declaration
V
alue
Rules
Selector
Declaration
p { font-family : Arial ; }
EXAMPLE
<html>
<head>
<style> p {font-family:Arial;
color: red;
background-color:black;}
</style>
</head>
<body>
<p> <b> Welcome to Coder Decoder</b>
</p>
</body>
</html>
Welcome to Coder Decoder
Selector - I want the text color of my paragraph to be red and the background color to be black.
CSS SELECTORS
Declaring a CSS Rule for a Elements Attribute
It will style all the content of that element which you are selecting.
Example
The HTML
<p>
Welcome to the Coder Decoder
</p>
<p>
<b><i> Powered by – Dhirendra Chauhan</i></b>
</p>
The CSS
p {text-align: center; color: blue;}
CSS SELECTORS
Grouping Selectors
You can group all the selectors of same style to minimize the code. The
selectors should be separated with comma.
Example
h2 {text-align: center; color: red; }
p {text-align: center; color: red;}
Grouped Selectors
h2, p { text-align: center; color: red; }
INSERTING A STYLESHEET
Three different ways
1. External Style Sheet
2. Internal Style Sheet
3. Inline Styles
Inline CSS
Inline CSS contains the CSS property in the body section
attached with element is known as inline CSS. This kind of style
is specified within an HTML tag using the style attribute.
<html>
<head>
<title>Inline CSS</title>
</head>
<body>
<p style = "color:#009900; font-size:50px; font-style:italic; text-align:center;">
Coder Decoder
</p>
</body>
</html> Coder Decoder
Internal or Embedded CSS
An internal stylesheet holds CSS rules for the page in the
head section of the HTML file. The rules only apply to that
page, but we can configure CSS classes and IDs that can be used
to style multiple elements in the page code.
<head>
<style type =“text / css”>
h3 { font-style:bold; font-size:20px; }
</style>
</head>
<html>
<head>
<title>Internal CSS</title>
<style>
.main { text-align:center; }
.coder { font-style:bold; font-size:20px; }
</style>
</head>
<body>
<div class = "main">
<div class ="GFG">Mount Abu</div>
<div class =“coder">
A computer science portal for Class X
</div>
</div>
</body>
</html>
External CSS
External CSS contains separate CSS file which contains only style
property with the help of tag attributes ( For example class, id,
heading, … etc ).
An external ( also called linked ) style sheet carries essentially the
same information as an internal style sheet in the sense that external
style sheet is contained inn its own text file ( having extension .css )
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>
<h1>Coder Decoder</h1>
<p>This is a my Channel.</p>
</body>
</html>
"mystyle.css"
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
Example
CSS PROPERTIES
CSS Background
We can use CSS Background properties to define the background effects of an
element. The following properties can be used for background effects :
a. background-color
b. background-image
c. background-repeat
d. background-position
CSS Background Image
You can use an image as the background for an element using background-
image property.
Example:-
body{
background-image : url(‘java.png’);
}
CSS PROPERTIES
CSS Background Color
The background-color property is used to specify the background color of an
element.
Example:
body {
background-color : darkblue;
}
p {
background-color : orange;
}
CSS PROPERTIES
CSS Background Position
If the background image disturbs the text, i.e. if the text cannot be read clearly due to the
image in the background, we can set the position of the background image.
Example:
body {
background-image :url(“CoderDecoder.jpg");
background-repeat : no-repeat;
background-position :right top;
}
CSS PROPERTIES
Text Alignment
We can either align the text to the left, right, center or we can make it justified.
Example-
p { text-align : left;}
h1{text-align : center;}
Text Color
The color property is used to set the color of text.
Example-
body{ color : blue;}
p1 { color : magenta;}
CSS PROPERTIES
Text Formatting
The following properties can be used for formatting text :
1. Text Color
2. Text Alignment
3. Text Decoration
4. Text Transformation
5. Text Indentation
CSS PROPERTIES
Text Decoration
You can use text-decoration property to set or remove decorations from text.
Example-
p {text-decoration:overline;}
p {text-decoration:line-through;}
p {text-decoration:underline;}
Text Transformation
You can use text-transform property to specify uppercase and lowercase letters of any
text.
Example-
h1 {text-transform:uppercase;}
h2 {text-transform:lowercase;}
p {text-transform:capitalize;}
CSS PROPERTIES
CSS Font Size
You can use the font-size property to set the size of text. The font-size value can be
absolute or it can be relative.
Example
h1 {
font-size: 30px;
}
p {
font-size: 14px;
}
CSS PROPERTIES
CSS Links
You can use CSSstyles to style any link. Links can be styled in different waysby
using any CSSproperty like color, font-family etc.
Links can be in one of the following states :
 a : link – Unvisited link
 a : visited – Alink that the user has visited
 a : hover – Alink over which the mouse pointer is moving
 a : active – Alink, which has been just clicked
CSS PROPERTIES
CSS Links
a { font-weight: bold; }
a : link { color: black; }
a : visited { color : gray; }
a:hover {
text-decoration: none;
color: white;
background-color: navy;
}
a : active {
color: aqua;
background-color : navy;
}
Styling Links
link - before a visit
visited - after it has been visited
hover - when your mouse is over it but you have
not clicked
active - you have clicked it and you have not yet
seen the new page
CSS PROPERTIES
CSS List
We can use CSSlist properties for
 Setting different list item markers for ordered lists
 Setting different list item markers for unordered lists
 Set an image as the list item marker
Values
 list-style-type
 list-style-image
CSS PROPERTIES
CSS Border
You can use the CSS Border properties to specify the style and color of an element’s
border.
Values
1. border-style
2. border-width
3. border-color
CSS PROPERTIES
CSS Margin
Using CSSMargin properties you can specify the space around elements.
Values:
margin-top:50px;
margin-bottom:30px;
margin-right:25px;
margin-left:10px;
CSS PROPERTIES
THANK
YOU

More Related Content

PDF
HTML CSS Basics
Mai Moustafa
 
PPT
Html
Bhumika Ratan
 
PPTX
Cascading Style Sheet (CSS)
AakankshaR
 
PPTX
Html and css presentation
umesh patil
 
PPTX
power point presentation
Dr. Hina Kaynat
 
PPT
Cascading Style Sheets (CSS) help
casestudyhelp
 
PDF
Error detection & correction codes
Revathi Subramaniam
 
PDF
HTML and CSS crash course!
Ana Cidre
 
HTML CSS Basics
Mai Moustafa
 
Cascading Style Sheet (CSS)
AakankshaR
 
Html and css presentation
umesh patil
 
power point presentation
Dr. Hina Kaynat
 
Cascading Style Sheets (CSS) help
casestudyhelp
 
Error detection & correction codes
Revathi Subramaniam
 
HTML and CSS crash course!
Ana Cidre
 

What's hot (20)

PPT
Css Ppt
Hema Prasanth
 
PPTX
Lab #2: Introduction to Javascript
Walid Ashraf
 
PDF
Introduction to HTML and CSS
Mario Hernandez
 
PDF
Intro to HTML and CSS basics
Eliran Eliassy
 
PPTX
Css selectors
Parth Trivedi
 
PPT
CSS for Beginners
Amit Kumar Singh
 
PPT
CSS ppt
Sanmuga Nathan
 
PDF
HTML & CSS
lexinamer
 
PPTX
Html5 tutorial for beginners
Singsys Pte Ltd
 
PPTX
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
PPTX
Complete Lecture on Css presentation
Salman Memon
 
PPT
Introduction to JavaScript
Andres Baravalle
 
PPT
Introduction to CSS
Amit Tyagi
 
PPTX
Java script
Shyam Khant
 
PPTX
Html ppt
santosh lamba
 
PPTX
Javascript 101
Shlomi Komemi
 
PDF
JavaScript - Chapter 3 - Introduction
WebStackAcademy
 
ODP
CSS Basics
Sanjeev Kumar
 
Css Ppt
Hema Prasanth
 
Lab #2: Introduction to Javascript
Walid Ashraf
 
Introduction to HTML and CSS
Mario Hernandez
 
Intro to HTML and CSS basics
Eliran Eliassy
 
Css selectors
Parth Trivedi
 
CSS for Beginners
Amit Kumar Singh
 
HTML & CSS
lexinamer
 
Html5 tutorial for beginners
Singsys Pte Ltd
 
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
Complete Lecture on Css presentation
Salman Memon
 
Introduction to JavaScript
Andres Baravalle
 
Introduction to CSS
Amit Tyagi
 
Java script
Shyam Khant
 
Html ppt
santosh lamba
 
Javascript 101
Shlomi Komemi
 
JavaScript - Chapter 3 - Introduction
WebStackAcademy
 
CSS Basics
Sanjeev Kumar
 
Ad

Similar to html-css (20)

PPTX
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
PPTX
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
PPTX
session2 cascading style sheet course.pptx
mostafaalgendy3
 
PPTX
session2 css cascade style sheet course.pptx
mostafaalgendy3
 
PPTX
session2_cascading_style_sheet_cssc.pptx
mostafaalgendy3
 
PPT
css Cascading Style Sheets (CSS) - control the look and feel of your HTML doc...
swamijassu92
 
PPT
css1.ppt
BalasundaramSr
 
PPT
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 
PPTX
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
PPTX
css3.0.( Cascading Style Sheets ) pptx
neelkamal72809
 
PPTX
CSS
DivyaKS12
 
PPTX
Lecture-6.pptx
vishal choudhary
 
PPTX
WT CSS
Mohan186867
 
PPTX
CSS Presentation Notes.pptx
VineetaSingh713208
 
PPTX
Introduction to CSS
Folasade Adedeji
 
DOC
Css introduction
vishnu murthy
 
PPTX
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
eyasu6
 
PDF
cascading style sheets ppt.sildeshower phone view
kedaringle994
 
PPTX
CSS tutorial chapter 1
jeweltutin
 
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
v5-introduction to html-css-210321161444.pptx
hannahroseline2
 
session2 cascading style sheet course.pptx
mostafaalgendy3
 
session2 css cascade style sheet course.pptx
mostafaalgendy3
 
session2_cascading_style_sheet_cssc.pptx
mostafaalgendy3
 
css Cascading Style Sheets (CSS) - control the look and feel of your HTML doc...
swamijassu92
 
css1.ppt
BalasundaramSr
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 
Cascading style sheet, CSS Box model, Table in CSS
SherinRappai
 
css3.0.( Cascading Style Sheets ) pptx
neelkamal72809
 
Lecture-6.pptx
vishal choudhary
 
WT CSS
Mohan186867
 
CSS Presentation Notes.pptx
VineetaSingh713208
 
Introduction to CSS
Folasade Adedeji
 
Css introduction
vishnu murthy
 
Chapter_1_Web_Technologies_Basics (CSS)_Part_2.pptx
eyasu6
 
cascading style sheets ppt.sildeshower phone view
kedaringle994
 
CSS tutorial chapter 1
jeweltutin
 
Ad

More from Dhirendra Chauhan (20)

PPTX
V35 keys-c
Dhirendra Chauhan
 
PPTX
V34 numeric function-c
Dhirendra Chauhan
 
PPTX
V33 date function-c
Dhirendra Chauhan
 
PPTX
V31 having
Dhirendra Chauhan
 
PPTX
V30 full join(union intersect etc)
Dhirendra Chauhan
 
PPTX
V29 group by-c
Dhirendra Chauhan
 
PPTX
V28 view
Dhirendra Chauhan
 
PPTX
V27 constraint
Dhirendra Chauhan
 
PPTX
V26 key
Dhirendra Chauhan
 
PPTX
V25 sql index
Dhirendra Chauhan
 
PPTX
V24 cartesion product-c
Dhirendra Chauhan
 
PPTX
V23 function-2
Dhirendra Chauhan
 
PPTX
V22 function-1
Dhirendra Chauhan
 
PPTX
V21 in operator
Dhirendra Chauhan
 
PPTX
V20 bet ween operator-c
Dhirendra Chauhan
 
PPTX
V19 join method-c
Dhirendra Chauhan
 
PPTX
V18 alias-c
Dhirendra Chauhan
 
PPTX
V17 show command-c
Dhirendra Chauhan
 
PPTX
V16 sql comments-c
Dhirendra Chauhan
 
PPTX
V15 like operator-c
Dhirendra Chauhan
 
V35 keys-c
Dhirendra Chauhan
 
V34 numeric function-c
Dhirendra Chauhan
 
V33 date function-c
Dhirendra Chauhan
 
V31 having
Dhirendra Chauhan
 
V30 full join(union intersect etc)
Dhirendra Chauhan
 
V29 group by-c
Dhirendra Chauhan
 
V27 constraint
Dhirendra Chauhan
 
V25 sql index
Dhirendra Chauhan
 
V24 cartesion product-c
Dhirendra Chauhan
 
V23 function-2
Dhirendra Chauhan
 
V22 function-1
Dhirendra Chauhan
 
V21 in operator
Dhirendra Chauhan
 
V20 bet ween operator-c
Dhirendra Chauhan
 
V19 join method-c
Dhirendra Chauhan
 
V18 alias-c
Dhirendra Chauhan
 
V17 show command-c
Dhirendra Chauhan
 
V16 sql comments-c
Dhirendra Chauhan
 
V15 like operator-c
Dhirendra Chauhan
 

Recently uploaded (20)

PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PPTX
Role Of Python In Programing Language.pptx
jaykoshti048
 
PDF
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PDF
Immersive experiences: what Pharo users do!
ESUG
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PPTX
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PDF
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
PPTX
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PDF
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
Role Of Python In Programing Language.pptx
jaykoshti048
 
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
Immersive experiences: what Pharo users do!
ESUG
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 

html-css

  • 2. WHAT IS CSS? CSS stands for “Cascading Style Sheets” Cascading refers to the procedure that determines which style will apply to a certain section, if you have more than one style rule. Style how you want a certain part of your page to look. You can set things like color, margins, font, etc for things like tables, paragraphs, and headings. Sheets the “sheets” are like templates, or a set of rules, for determining how the webpage will look. CSS is a stylesheet language used to describe the presentation of a document written in HTML or XML.
  • 3. Why Use CSS? • CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.
  • 4. • A web application will contains hundreds of web pages, which are created using HTML. • Formatting these HTML pages will be a laborious process, as formatting elements need to be applied to each and every page. • CSS saves lots of work as we can change the appearance and layout of all the web pages by editing just one single CSS file. Advantages
  • 6. • A CSS rule-set consists of a selector and a declaration block: • The selector points to the HTML element you want to style. • The declaration block contains one or more declarations separated by semicolons. • Each declaration includes a CSS property name and a value, separated by a colon. • Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.
  • 7. Example In this example all <p> elements will be center-aligned, with a red text color: p { color : red ; text-align : center; } Example Explained •p is a selector in CSS . •color is a property, and red is the property value •text-align is a property, and center is the property value
  • 9. CSS Syntax Rules Rule have two parts - Selector and declaration. Selector The HTML element you want to add style to. <p> <h1> <table> etc Declaration The statement of style for that element. Made up of property andvalue. Property Declaration V alue Rules Selector Declaration p { font-family : Arial ; }
  • 10. EXAMPLE <html> <head> <style> p {font-family:Arial; color: red; background-color:black;} </style> </head> <body> <p> <b> Welcome to Coder Decoder</b> </p> </body> </html> Welcome to Coder Decoder Selector - I want the text color of my paragraph to be red and the background color to be black.
  • 11. CSS SELECTORS Declaring a CSS Rule for a Elements Attribute It will style all the content of that element which you are selecting. Example The HTML <p> Welcome to the Coder Decoder </p> <p> <b><i> Powered by – Dhirendra Chauhan</i></b> </p> The CSS p {text-align: center; color: blue;}
  • 12. CSS SELECTORS Grouping Selectors You can group all the selectors of same style to minimize the code. The selectors should be separated with comma. Example h2 {text-align: center; color: red; } p {text-align: center; color: red;} Grouped Selectors h2, p { text-align: center; color: red; }
  • 13. INSERTING A STYLESHEET Three different ways 1. External Style Sheet 2. Internal Style Sheet 3. Inline Styles
  • 14. Inline CSS Inline CSS contains the CSS property in the body section attached with element is known as inline CSS. This kind of style is specified within an HTML tag using the style attribute. <html> <head> <title>Inline CSS</title> </head> <body> <p style = "color:#009900; font-size:50px; font-style:italic; text-align:center;"> Coder Decoder </p> </body> </html> Coder Decoder
  • 15. Internal or Embedded CSS An internal stylesheet holds CSS rules for the page in the head section of the HTML file. The rules only apply to that page, but we can configure CSS classes and IDs that can be used to style multiple elements in the page code.
  • 16. <head> <style type =“text / css”> h3 { font-style:bold; font-size:20px; } </style> </head>
  • 17. <html> <head> <title>Internal CSS</title> <style> .main { text-align:center; } .coder { font-style:bold; font-size:20px; } </style> </head> <body> <div class = "main"> <div class ="GFG">Mount Abu</div> <div class =“coder"> A computer science portal for Class X </div> </div> </body> </html>
  • 18. External CSS External CSS contains separate CSS file which contains only style property with the help of tag attributes ( For example class, id, heading, … etc ). An external ( also called linked ) style sheet carries essentially the same information as an internal style sheet in the sense that external style sheet is contained inn its own text file ( having extension .css )
  • 19. <html> <head> <link rel="stylesheet" href="mystyle.css"> </head> <body> <h1>Coder Decoder</h1> <p>This is a my Channel.</p> </body> </html> "mystyle.css" body { background-color: lightblue; } h1 { color: navy; margin-left: 20px; } Example
  • 20. CSS PROPERTIES CSS Background We can use CSS Background properties to define the background effects of an element. The following properties can be used for background effects : a. background-color b. background-image c. background-repeat d. background-position
  • 21. CSS Background Image You can use an image as the background for an element using background- image property. Example:- body{ background-image : url(‘java.png’); } CSS PROPERTIES
  • 22. CSS Background Color The background-color property is used to specify the background color of an element. Example: body { background-color : darkblue; } p { background-color : orange; } CSS PROPERTIES
  • 23. CSS Background Position If the background image disturbs the text, i.e. if the text cannot be read clearly due to the image in the background, we can set the position of the background image. Example: body { background-image :url(“CoderDecoder.jpg"); background-repeat : no-repeat; background-position :right top; } CSS PROPERTIES
  • 24. Text Alignment We can either align the text to the left, right, center or we can make it justified. Example- p { text-align : left;} h1{text-align : center;} Text Color The color property is used to set the color of text. Example- body{ color : blue;} p1 { color : magenta;} CSS PROPERTIES
  • 25. Text Formatting The following properties can be used for formatting text : 1. Text Color 2. Text Alignment 3. Text Decoration 4. Text Transformation 5. Text Indentation CSS PROPERTIES
  • 26. Text Decoration You can use text-decoration property to set or remove decorations from text. Example- p {text-decoration:overline;} p {text-decoration:line-through;} p {text-decoration:underline;} Text Transformation You can use text-transform property to specify uppercase and lowercase letters of any text. Example- h1 {text-transform:uppercase;} h2 {text-transform:lowercase;} p {text-transform:capitalize;} CSS PROPERTIES
  • 27. CSS Font Size You can use the font-size property to set the size of text. The font-size value can be absolute or it can be relative. Example h1 { font-size: 30px; } p { font-size: 14px; } CSS PROPERTIES
  • 28. CSS Links You can use CSSstyles to style any link. Links can be styled in different waysby using any CSSproperty like color, font-family etc. Links can be in one of the following states :  a : link – Unvisited link  a : visited – Alink that the user has visited  a : hover – Alink over which the mouse pointer is moving  a : active – Alink, which has been just clicked CSS PROPERTIES
  • 29. CSS Links a { font-weight: bold; } a : link { color: black; } a : visited { color : gray; } a:hover { text-decoration: none; color: white; background-color: navy; } a : active { color: aqua; background-color : navy; } Styling Links link - before a visit visited - after it has been visited hover - when your mouse is over it but you have not clicked active - you have clicked it and you have not yet seen the new page CSS PROPERTIES
  • 30. CSS List We can use CSSlist properties for  Setting different list item markers for ordered lists  Setting different list item markers for unordered lists  Set an image as the list item marker Values  list-style-type  list-style-image CSS PROPERTIES
  • 31. CSS Border You can use the CSS Border properties to specify the style and color of an element’s border. Values 1. border-style 2. border-width 3. border-color CSS PROPERTIES
  • 32. CSS Margin Using CSSMargin properties you can specify the space around elements. Values: margin-top:50px; margin-bottom:30px; margin-right:25px; margin-left:10px; CSS PROPERTIES