CSS your HTML partner ! !

CSS your HTML partner! !

Click here to visit Our forum here!

Saturday, April 2, 2011

Cascading Style Sheets and Accessibilty

Link Us To : http://sn.im/27s5dy / http://tinyurl.com/444ljs2
There are many facets to web accessibility, but the best place to start when trying to make web sites more accessible to separate structured content from presentation. It's also one of the most important principles behind web standards and accessibility.



Structured content is information organized into predefined constructs. In the case of web pages, content is structured using markup languages like XHTML.


Example:


< h1 > This is a heading < /h1 >


< p > This is a paragraph. < /p >




The problem with using markup tags for formatting is that markup tags are embedded into the content. Inevitably, this limited the accessibility of the content for many users and devices.




The advent of CSS language changed the way content is formatted. Formatting rules can be created in separate files which marks it easier for designers to apply new formatting to content and for some devices to process content without the "noise" of formatting. Below is the example of simple CSS.


Example: p {font-size: small;}


selector {property: value;}




By using CSS in a separate text file, a single CSS file can control the separtion of content from presentation that we described, and to ensuer the separation of content from presentation.




References: Extension HyperText Markup Language, [Online], Retrieved 2 April 2011.


No comments:

Post a Comment