Css : A Style Sheet Language

1111 Words5 Pages
CSS: Cascading Style Sheets (CSS), is a style sheet language, which is used for describing the presentation of a document that is written in a markup language. CSS is most often used to set the visual styles of web pages and user interfaces that are written in HTML or XHTML (XHTML extends versions of the widely used HTML). CSS can be applied to any XML document, including plain XML, Scalable Vector Graphics (SVG) and XML User Interface Language (XUL). CSS is also applicable to rendering in speech, or on other media types. As well as HTML and JavaScript, CSS is a standard technology used by most websites to create webpages that are visually engaging, user interfaces for web applications, and also user interfaces for mobile applications. CSS is primarily used to enable the separation of document content from document presentation, this includes characteristics such as the fonts, colours and layout. Content accessibility can be improved by this separation, as well as providing more flexibility and control in the specification of presentation characteristics. CSS also enabled multiple HTML pages to share formatting, this is done by specifying the relevant CSS in a separate ‘.css’ file. Furthermore, CSS reduces complexity and repetition in structural content. CSS is used to separate presentation commands from the HTML content in a separate file or style section of the HTML file. CSS provides a list of instructions for each matching HTML element. The separation of formatting and content is what makes it possible to present the same markup page in different styles. Furthermore, for different rendering methods, such as in print, on-screen, by voice (if read out by a screen reader or speech-based browser) and on Braille-based devices. CSS... ... middle of paper ... ...nd/or server side scripting to effortlessly switch between different CSS style sheets depending on certain factors including; which browser type a user is accessing the website with; a user clicking a button to change the style sheet to one with larger fonts and higher brightness levels etc.; the time of the day; whether or not a user is logged into a site and whether a web page should be formatted for a screen, or for print. Using external stylesheets is the most ideal way for a web developer to implement style into their content. CSS files can be created using any text editor in the same way that an HTML file would be created. The difference being that you must save the style file as a file with the ‘.css’ extension. An external stylesheet can contain as many style declarations as needed and they offer the most easy and flexible way to implement styles to web pages.

More about Css : A Style Sheet Language

Open Document