style sheets. css cascading style sheets (css) are powerful when used properly. they allow web users...

61
Style Sheets

Post on 20-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Style Sheets

Page 2: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

CSS

• Cascading style sheets (CSS) are powerful when used properly.

• They allow web users to receive information in ways that suit.

• They allow for flexible delivery of content• The effort required to get to grips with them is

rewarded by the increased ease of making changes and increased accessibility and flexibility.

Page 3: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Consider (http://www.hwg.org/)

Page 4: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

It can also be presented as:

Same page after applying a simple style sheet with a yellow on black color combination and x-large font size (about 27 pt).

Yellow on black is a scheme that is often rewarding to people who have vision loss, but can still read the screen if the contrasts are just right

Page 5: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

First though

• Need to check if we can use them in the first place• Some people use browsers that do not support

Cascading Style Sheets, or, they may have style sheets turned off so they can enable a style sheet of their own.

• In either case, you need to make sure that your pages are readable when style sheets are turned off. In fact for the most part, screen readers read pages as if style sheets were turned off.

Page 6: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Reading Web Pages without CSS

• So what are the accessibility issues with cascading style sheets? Here is the Section 508 standard for style sheets:

• §1194.22 (d)Documents shall be organized so they are readable without requiring an associated style sheet.

• You need to check your site with style sheets turned off..

Page 7: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Options

• In Internet Explorer to approximate not having style sheets:• Use Tools / Internet Options / Accessibility . • Check the three boxes at the top of the Internet Options Dialog to ignore

colors, font styles and font sizes. • Uncheck the box to Format documents using my style sheet, or check it

and specify an empty style sheet. • For an empty style sheet just use Notepad to create a file and save it as

empty.css. Then specify that file and correct path in the Accessibility dialog. This process is effective for font and color on the page; but ha no effect on other aspects of CSS like positioning and visibility.

• Firefox does a good job of turning off style sheets. Use the View Menu, Page Style, No Style.

Page 8: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Style sheets can be used in different ways

Page 9: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Style Sheet in a separate file

• A style sheet can be a separate file that is accessed by the link element:

• <link href="/css/main.css" rel="stylesheet" type="text/css">

Page 10: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Style element within a web page

• Or, the web author can use the style element within a web page to detail style choices.

• <style type="text/css"> .warning {font-weight: bold;} </style>

Page 11: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Style Attribute of HTML

• Finally styling can be added with the style attribute in HTML, kind of defeating the concept of separating content from presentation.

• <span style="font-weight: bold;">There is an error on the page.</span>

Page 12: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example

• The following example that specifies all h1's should appear in red illustrates a the middle strategy.

• <style type="text/css"> h1 {color: red;} </style>

Page 13: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Using CSS

• Always use style sheets for formatting: – Use for colours, fonts, sizes etc.

• Use style sheets for layout as much as possible: – The use of tables for layout is acceptable as long

as they provide the information in a sensible reading order

Page 14: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Decrease maintenance and increase consistency

• Checkpoints in this section: 14.3 Create a style of presentation that is consistent across pages. [Priority 3] .

• Use a minimal number of style sheets for your site

• Use linked style sheets rather than embedded styles, and avoid inline style sheets.

• If you have more than one, use the same "class" name for the same concept in all of the style sheets.

Page 15: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Tip

• Make sure the page displays correctly and makes sense when style sheets are not supported, disabled or overridden.

Page 16: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Don’t use CSS to simulate HTML

• If you use cascading style sheets to simulate structural markup, your pages will not be "readable" when a user has style sheets turned off.

• It is good, accessible web authoring to choose and modify the visual effect of heading content; it is not good practice to modify normal text to make it look like a heading. It is possible to make ordinary text with DIV's and SPAN's look like almost any HTML construct. This creates two problems:

• Your page is not "readable" with style sheets turned off (in the sense of the Section 508 provision above), and

• Even with style sheets turned on, assistive technology will not find the structural elements that it needs to help navigate the content.

Page 17: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example• The following examples illustrate this problem. This code

fragment shows how a style element can simulate a heading tag - don't do it!

• <style>.head { font-size: x-large; font-weight: bold;}</style>...<h1>This is a true Heading Level 1</h1><p class="head">This is a Heading 1 created with Style!</p>

• Here is the result. As you can see, the heading levels look exactly alike:This is a true Heading Level 1This is a Heading 1 created with Style!

Page 18: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Problems• These headings will not look alike when style sheets are

turned off or not supported. In addition, they are not alike to assistive technology.

• IBM Home Page Reader, Version 3.0 will not only jump from heading to heading, but it will also read each heading with slight audio "ping" informing the user of the fact that the text is a heading.

• HPR 3.0 would read the true heading correctly, but would not even find the second heading using its "headings" navigation.

• JAWS and WIndow-Eyes use headings navigation with the "H" key. They won't find the heading created by styling the text.

Page 19: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

CSS Positioning

• Another area of concern for accessibility is the use of CSS for positioning content.

• Just as you could simulate HTML structural elements with style sheets, and shouldn't, in the same way you could place content just about anywhere - and shouldn't.

• Make sure that your page makes sense when the positioning is disabled by turning off style sheets.

Page 20: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Summary

• Style sheets are effective in adding font variations and colors to your web pages. But don't substitute style changes for the structural elements of HTML like headings, paragraphs, and lists.

• If you use CSS for positioning or page-wide color controls, check out your pages with style sheets disabled to be sure that information is not lost.

• Don't convey information in background images but if you do, make sure that information is available to screen readers through some other avenue.

Page 21: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

The advantages of stylesheets

• Make it easier to keep HTML coding clean and structural;

• Give more precise control over layout and formatting: – Changes only have to be made in one place to

take effect over all documents using the style sheet;

• Help create a consistent look and feel across pages that use the style sheet;

Page 22: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

More Advantages

• Reduce the file size of the web page: – This makes download time for pages faster and

places less load on the web server.

• In addition, stylesheets give more potential flexibility to the way your information is displayed:

Page 23: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Even More

• Alternative stylesheets can be offered on your site so that your visitors can choose a presentation that best suits them (e.g. make the text larger);

• People will be able to use their own personal stylesheets to control aspects of your site's presentation.

Page 24: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

• <style type="text/css" media="screen">• @import url(content.css);</style>• <link rel="stylesheet" type="text/css"

media="print" href="contentprint.css">

Page 25: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Deprecated styles

• Most of the HTML tags and attributes commonly used for visual formatting are now deprecated, use CSS instead.

Page 26: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

CSS for layout

• Browser support is now at a stage where this is a reality and should be used where possible. At present a number of 'tricks' or 'hacks' are required to get cross- browser support, this should decrease as browser support continues to be enhanced.

Page 27: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

User override of styles

• Checkpoint in this section: 11.2 Avoid deprecated features of W3C technologies. [Priority 2] .

• In order to ensure that users can control styles, CSS2 changes the semantics of the "!important" operator defined in CSS1.

• In CSS1, authors always had final say over styles.

Page 28: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example !important

• In CSS2, if a user's style sheet contains "!important", it takes precedence over any applicable rule in an author's style sheet.

• This is an important feature to users who require or must avoid certain color combinations or contrasts, users who require large fonts, etc.

• For instance, the following rule specifies a large font size for paragraph text and would override an author rule of equal weight:

• P { font-size: 24pt ! important }

Page 29: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Inherit value

The CSS2 'inherit' value - available for every

property - leads to compact "!important" style rules that govern most or all of a document. For instance, the following style rules force all backgrounds to white and all foreground colors to black:

Page 30: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example inherit property /* Sets the text color to black and the background color to white for the document

body. */ BODY { color: black ! important ; background: white ! important } /* Causes the values of 'color' and 'background' to be inherited by all other

elements, strengthened by !important. Note that this may be overridden by other, more specific, user styles. */

* { color: inherit ! important ; background: inherit ! important }

Page 31: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Other CSS2 user control features

• System colors (for 'color', 'background-color', 'border-color', and 'outline-color') and system fonts (for 'font') mean that users may apply their system color and font preferences to Web documents.

• Dynamic outlines (the 'outline' property) allow users (e.g., with low vision) to create outlines around content that don't affect layout but do provide highlight information.

Page 32: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example –User Controls

• For example, to draw a thick black line around an element when it has the focus, and a thick red line when it is active, the following rules can be used:

:focus { outline: thick solid black } :active { outline: thick solid red }

Page 33: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Use Relative sizes etc

• As stated before use relative sizes rather than absolute values e.g. % rather than pt

Page 34: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Generating content from style sheets

• CSS2 includes several mechanisms that allow content to be generated from style sheets: such as the :before and :after pseudo-elements and the 'content' property.

• Generated content can serve as markers to help users navigate a document and stay oriented when they can't access visual clues such as proportional scrollbars, frames with tables of contents, etc.

• When used together, these allow authors to insert markers (e.g., counters and constant strings such as "End Example" in the examples below) before or after and element's content.

Page 35: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example:after

• For instance, the following user style sheet would cause the words "End Example" to be generated after each example marked up with a special class value in the document:

• Example.• • DIV.example:after { • content: End Example • }

Page 36: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example :before -Numbering paragraphs

• Users could also, for example, number paragraphs so that they could locate their current reading position in a document:

• Example. P:before { content: counter(paragraph) ". " ; counter-increment: paragraph

Page 37: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

The 'cue', 'cue-before', and 'cue-after' properties.

• These properties allow users to play a sound before or after an element's content.

• List styles, which may be numbers, glyphs, or images (usually associated with the LI element in HTML).

• CSS2 adds international list styles to the styles defined in CSS1.

• See the 'list-style-type' and 'content' properties.

Page 38: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Fonts

• Checkpoints in this section: 11.2 Avoid deprecated features of W3C technologies. [Priority 2] .

• Techniques:• Always specify a fallback generic font. • Instead of using deprecated presentation elements

and attributes, use the many CSS properties to control font characteristics: 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', and 'font-weight'.

Page 39: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

CSS2 Font properties

• Use the following CSS2 properties to control font information – 'font', 'font-family', 'font-size', 'font-size-adjust', 'font-

stretch', 'font-style', 'font-variant', and 'font-weight' • instead of the following deprecated font

elements and attributes in HTML:– FONT, BASEFONT, "face", and "size".

• If you must use HTML elements to control font information, use BIG and SMALL, which are not deprecated.

Page 40: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Text style effects• Checkpoints in this section: 7.2 Until user agents

allow users to control blinking, avoid causing content to blink (i.e., change presentation at a regular rate, such as turning on and off). [Priority 2] .

• The following CSS2 properties can be used to style text:

• Case: 'text-transform' (for uppercase, lowercase, and capitalization).

• Shadow effects: 'text-shadow' • Underlines, overlinks, blinking: 'text-decoration'.).

Page 41: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Blinking

• Note. If blinking content (e.g., a headline that appears and disappears at regular intervals) is used, provide a mechanism for stopping the blinking.

• In CSS, 'text-decoration: blink' will cause content to blink and will allow users to stop the effect by turning off style sheets or overriding the rule in a user style sheet.

• Do not use the BLINK and MARQUEE elements. These elements are not part of any W3C specification for HTML (i.e., they are non-standard elements

Page 42: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

• Example.• Always specify a fallback generic font:

BODY { font-family: "Gill Sans", sans-serif }

• Example.<STYLE type="text/css"> P.important { font-weight: bold } P.less-important { font-weight: lighter; font-size:

smaller } H2.subsection { font-family: Helvetica, sans-serif }</STYLE>

Page 43: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

• Color Contrast• Checkpoints in this section:• 2.2 Ensure that foreground and background

color combinations provide sufficient contrast when viewed by someone having color deficits or when viewed on a black and white screen. [Priority 2 for images, Priority 3 for text].

Page 44: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Techniques:

• Use numbers, not names, for colors. • Example.• Use numbers, not names, for colors:• H1 {color: #808000}• H1 {color: rgb(50%,50%,0%)}• End example.

Page 45: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Deprecated example.

H1 {color: red}

Page 46: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Css colour properties• Use these CSS properties to specify colors:• 'color', for foreground text color. • 'background-color', for background colors. • 'border-color', 'outline-color' for border colors. • For link colors, refer to the :link, :visited,

and :active pseudo-classes. • Ensure that foreground and background colors

contrast well. If specifying a foreground color, always specify a background color as well (and vice versa).

Page 47: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Ensuring information is not in color alone

• Checkpoints in this section:• 2.1 Ensure that all information conveyed with

color is also available without color, for example from context or markup. [Priority 1]

• Ensure that information is not conveyed through color alone. For example, when asking for input from users, do not write "Please select an item from those listed in green." Instead, ensure that information is available through other style effects (e.g., a font effect) and through context (e.g,. comprehensive text links).

Page 48: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example• For instance, in this document, examples are styled by

default (through style sheets) as follows:• They are surrounded by a border. • They use a different background color. • They begin with the word "Example" or "Deprecated

Example". • They also end with the phrase "End example", but that

phrase is hidden by default with 'display: none'. For user agents that don't support style sheets or when style sheets are turned off, this text helps delineate the end of an example for readers who may not be able to see the border around the example.

Page 49: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Colour Quicktests

• Quicktest! To test whether your document still works without colors, examine it with a monochrome monitor or browser colors turned off.

• Also, try setting up a color scheme in your browser that only uses black, white, and the four browser-safe greys and see how your page holds up.

Page 50: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Quicktest2

• Quicktest! To test whether color contrast is sufficient to be read by people with color deficiencies or by those with low resolution monitors, print pages on a black and white printer (with backgrounds and colors appearing in grayscale).

• Also try taking the printout and copying it for two or three generations to see how it degrades. This will show you where you need to add redundant cues (example: hyperlinks are usually underlined on Web pages), or whether the cues are too small or indistinct to hold up well.

Page 51: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Layout, positioning, layering, and alignment

• Checkpoints in this section:• 3.3 Use style sheets to control layout and

presentation. [Priority 2] • 5.3 Do not use tables for layout unless the table

makes sense when linearized. Otherwise, if the table does not make sense, provide an alternative equivalent (which may be a linearized version). [Priority 2] .

• Layout, positioning, layering, and alignment should be done through style sheets (notably by using CSS floats and absolute positioning):

Page 52: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

CSS properties

• 'text-indent', 'text-align', 'word-spacing', 'font-stretch'. Each of these properties allows users to control spacing without adding additional spaces. Use 'text-align: center' instead of the deprecated CENTER element.

• 'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left'. With these properties, authors can create space on four sides of an element's content instead of adding non-breaking spaces (&nbsp;).

Page 53: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

More• 'float', 'position', 'top', 'right', 'bottom', 'left'. With these properties,

the user can control the visual position of almost any element in a manner independent of where the element appears in the document.

• Authors should always design documents that make sense without style sheets (i.e., the document should be written in a "logical" order) and then apply style sheets to achieve visual effects.

• The positioning properties may be used to create margin notes (which may be automatically numbered), side bars, frame-like effects, simple headers and footers, and more.

• The 'empty-cells' property allows users to leave table cells empty and still give them proper borders on the screen or on paper. A data cell that is meant to be empty should not be filled with white space or a non-breaking space just to achieve a visual effect.

Page 54: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Rules and borders

• Checkpoints in this section: 6.1 Organize documents so they may be read without style sheets. For example, when an HTML document is rendered without associated style sheets, it must still be possible to read the document. [Priority 1] .

• Rules and borders may convey the notion of "separation" to visually enabled users but that meaning cannot be inferred out of a visual context.

Page 55: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

CSS properties to specify border styles:

• 'border', 'border-width', 'border-style', 'border-color'. • 'border-spacing' and 'border-collapse' for tables. • 'outline, 'outline-color', 'outline-style', and 'outline-width' for

dynamic outlines. • Authors should use style sheets to create rules and borders.

Page 56: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example.• In this example, the H1 element will have a top border that is 2px

thick, red, and separated from the content by 1em: <HEAD> <TITLE>Redline with style sheets</TITLE> <STYLE type="text/css"> H1 { padding-top: 1em; border-top: 2px red } </STYLE> </HEAD> <BODY> <H1>Chapter 8 - Auditory and Tactile Displays</H1> </BODY>• If a rule (e.g., the HR element) is used to indicate structure, be sure

to indicate the structure in a non-visual way as well. (e.g., by using structural markup).

Page 57: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example.

• In this example, the DIV element is used to create a navigation bar, which includes a horizontal separator.

<DIV class="navigation-bar"> <HR> <A rel="Next" href="next.html">[Next page]</A> <A rel="Previous" href="previous.html">[Prevous

page]</A> <A rel="First" href="first.html">[First page]</A> </DIV>

Page 58: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Access to alternative representations of content

• Checkpoints in this section: 11.3 Provide information so that users may receive documents according to their preferences (e.g., language, content type, etc.) [Priority 3] .

• CSS2 lets users access alternative representations of content that is specified in attribute values when the following are used together:

Page 59: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

attribute selectors

• the attr() function and the 'content' property' • the :before and :after pseudo-elements • In the following example, the value of the "alt" attribute for

the IMG element is rendered after the image (visually, aurally, etc.):

Page 60: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Example.

IMG:after { content: attr(alt) }• Note that the value of the attribute is

displayed even though the image may not be (e.g., the user has turned off images through the user interface).

Page 61: Style Sheets. CSS Cascading style sheets (CSS) are powerful when used properly. They allow web users to receive information in ways that suit. They allow

Media types• Checkpoints in this section: 11.3 Provide information

so that users may receive documents according to their preferences (e.g., language, content type, etc.) [Priority 3] .

• The CSS2 "media types" (used with @media rules) allow authors and users to design style sheets that will cause documents to render more appropriately on certain target devices.

• These style sheets can tailor content for presentation on braille devices, speech synthesizers, or TTY devices. Using "@media" rules can also reduce download times by allowing user agents to ignore inapplicable rules.