SlideShare a Scribd company logo
Savitribai Phule Pune University
 Provides ability to separate content from
presentation, and to allow for more precise
control over layout.
 Allow you modify properties of existing HTML
elements.
 Instructs the browser how to display individual
items or elements in your page.
 Styles are easy to edit and change; you may
change the style that was defined for that
element and all occurrences of the element in
the web page (or entire web site) will be
changed.
Savitribai Phule Pune University
CSS is called "cascading" because there is a
hierarchy or precedence for how styles are applied:
Savitribai Phule Pune University
CSS-disabled view CSS-enabled view
Savitribai Phule Pune University
 visibility: hidden; and/or display: none;
Do not use this CSS if you want
the content to be read by a screen reader.
 width:0px;height:0px
An element with no height or
width is removed from the flow of the page,
most screen readers will ignore this content.
 text-indent: -1000px;
It moves the content to the left
1000 pixels - thus off the visible screen.
Screen readers will still read text with this
style.
Savitribai Phule Pune University
 Style for visually hiding content that will be read by a
screen reader.
.hidden
{position: absolute; //remove the element from the
page flow and to begin
positioning it.
left:-10000px; //moves the content 10000 pixels
to the left.
top: auto;
width:1px; // to visually hide everything
that does not
height:1px; // fit into these dimensions.
overflow: hidden;}
 The .hidden CSS class should then be referenced as-
<div class="hidden">This text is
hidden.</div>
Savitribai Phule Pune University
 Fonts are the style of "type face" used to display
text, numbers, characters and other "glyphs“.
 Real Text vs. Text Within Graphics-
The enlarged image of the word
"University" above is difficult to read because it has
become pixelated.
 Font Variations-
1. Bold and Italic
2. Capitalization
Savitribai Phule Pune University
 Font Readability –
Some natively provided
fonts are-
 Font Family –
Serif font(Extra
strokes)
Sans-serif font Cursive
font
Fantasy font Monospace font
Savitribai Phule Pune University
 Specifying font families -
The CSS specifies a number of font faces or
families.
body
{
font-family: Helvetica, Arial, sans-
serif;
}
h1
{
font-family: Georgia, Times, "Times
New Roman", serif;
}
Savitribai Phule Pune University
 Color Contrast –
 Font Size –
1. Relative Units such as percentage and ems
2. Absolute Units such as pixels and points
 Blinking and Moving Text –
Blinking text and moving text can distract the
reader's attention. Blinking or animating text should be
avoided.
 Text alignment and text margins , padding –
p {margin: auto 15% auto 15%; text-
align:left;}
.another_p {margin-left:15%; margin-
right:15%;}
Savitribai Phule Pune University
 CSS defines HOW HTML elements are to be
displayed.
 Styles are normally saved in external .css
files. External style sheets enable you to
change the appearance and layout of all the
pages in a Web site, just by editing one single
file.
Savitribai Phule Pune University
Thank You
Savitribai Phule Pune University

More Related Content

ODP
Css jon duckett - flashcards
PPTX
session2 cascading style sheet course.pptx
PPTX
session2 css cascade style sheet course.pptx
PPTX
session2_cascading_style_sheet_cssc.pptx
PPTX
Web topic 17 font family in css
PPTX
Internet tech &amp; web prog. p4,5
Css jon duckett - flashcards
session2 cascading style sheet course.pptx
session2 css cascade style sheet course.pptx
session2_cascading_style_sheet_cssc.pptx
Web topic 17 font family in css
Internet tech &amp; web prog. p4,5

Similar to Accessible css (20)

PPTX
CSS3 notes
PPT
CSS Introduction
PPTX
Css ms megha
PDF
Not just a pretty (type)face
KEY
Advanced sass
PPT
CSS: How To Learn Easily
PPTX
lecture CSS 1-2_2022_2023.pptx
PDF
CSS Interview Questions for Fresher and Experience
PDF
Introduction to css
PPT
gdg_workshop 4 on web development HTML & CSS
PPTX
Html accessibility
PPTX
Web Programming Basic topic.pptx
PPT
Rh10 css presentation
PPT
Rh10 css presentation
PDF
css-tutorial
PDF
css-tutorial
PDF
A Complete Guide to Frontend - UI Developer
PPTX
Understanding CSS for web development by software outsourcing company india
PDF
CSS3 notes
CSS Introduction
Css ms megha
Not just a pretty (type)face
Advanced sass
CSS: How To Learn Easily
lecture CSS 1-2_2022_2023.pptx
CSS Interview Questions for Fresher and Experience
Introduction to css
gdg_workshop 4 on web development HTML & CSS
Html accessibility
Web Programming Basic topic.pptx
Rh10 css presentation
Rh10 css presentation
css-tutorial
css-tutorial
A Complete Guide to Frontend - UI Developer
Understanding CSS for web development by software outsourcing company india
Ad

Recently uploaded (20)

PDF
Digital Strategies for Manufacturing Companies
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
System and Network Administraation Chapter 3
PPTX
Introduction to Artificial Intelligence
PDF
System and Network Administration Chapter 2
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPT
Introduction Database Management System for Course Database
PPTX
ai tools demonstartion for schools and inter college
PDF
Nekopoi APK 2025 free lastest update
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
top salesforce developer skills in 2025.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Digital Systems & Binary Numbers (comprehensive )
Digital Strategies for Manufacturing Companies
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
System and Network Administraation Chapter 3
Introduction to Artificial Intelligence
System and Network Administration Chapter 2
PTS Company Brochure 2025 (1).pdf.......
Which alternative to Crystal Reports is best for small or large businesses.pdf
Introduction Database Management System for Course Database
ai tools demonstartion for schools and inter college
Nekopoi APK 2025 free lastest update
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Softaken Excel to vCard Converter Software.pdf
Odoo Companies in India – Driving Business Transformation.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
top salesforce developer skills in 2025.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
Digital Systems & Binary Numbers (comprehensive )
Ad

Accessible css

  • 2.  Provides ability to separate content from presentation, and to allow for more precise control over layout.  Allow you modify properties of existing HTML elements.  Instructs the browser how to display individual items or elements in your page.  Styles are easy to edit and change; you may change the style that was defined for that element and all occurrences of the element in the web page (or entire web site) will be changed. Savitribai Phule Pune University
  • 3. CSS is called "cascading" because there is a hierarchy or precedence for how styles are applied: Savitribai Phule Pune University
  • 4. CSS-disabled view CSS-enabled view Savitribai Phule Pune University
  • 5.  visibility: hidden; and/or display: none; Do not use this CSS if you want the content to be read by a screen reader.  width:0px;height:0px An element with no height or width is removed from the flow of the page, most screen readers will ignore this content.  text-indent: -1000px; It moves the content to the left 1000 pixels - thus off the visible screen. Screen readers will still read text with this style. Savitribai Phule Pune University
  • 6.  Style for visually hiding content that will be read by a screen reader. .hidden {position: absolute; //remove the element from the page flow and to begin positioning it. left:-10000px; //moves the content 10000 pixels to the left. top: auto; width:1px; // to visually hide everything that does not height:1px; // fit into these dimensions. overflow: hidden;}  The .hidden CSS class should then be referenced as- <div class="hidden">This text is hidden.</div> Savitribai Phule Pune University
  • 7.  Fonts are the style of "type face" used to display text, numbers, characters and other "glyphs“.  Real Text vs. Text Within Graphics- The enlarged image of the word "University" above is difficult to read because it has become pixelated.  Font Variations- 1. Bold and Italic 2. Capitalization Savitribai Phule Pune University
  • 8.  Font Readability – Some natively provided fonts are-  Font Family – Serif font(Extra strokes) Sans-serif font Cursive font Fantasy font Monospace font Savitribai Phule Pune University
  • 9.  Specifying font families - The CSS specifies a number of font faces or families. body { font-family: Helvetica, Arial, sans- serif; } h1 { font-family: Georgia, Times, "Times New Roman", serif; } Savitribai Phule Pune University
  • 10.  Color Contrast –  Font Size – 1. Relative Units such as percentage and ems 2. Absolute Units such as pixels and points  Blinking and Moving Text – Blinking text and moving text can distract the reader's attention. Blinking or animating text should be avoided.  Text alignment and text margins , padding – p {margin: auto 15% auto 15%; text- align:left;} .another_p {margin-left:15%; margin- right:15%;} Savitribai Phule Pune University
  • 11.  CSS defines HOW HTML elements are to be displayed.  Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file. Savitribai Phule Pune University
  • 12. Thank You Savitribai Phule Pune University