CSS Script

Hosting Encyclopedia » CSS Script

CSS which stands for Cascading Style Sheets is a scripting language used for describing the way a document written in a markup language looks. Most often it’s used for creating styles for websites written in HTML and XHTML, but if you code CSS it can also be used with all kinds of XML documents. CSS script’s main function is to divide the content of the page (created in HTML or another markup language) from document presentation, specifically elements like the layout, colors, and fonts. This division can boost content accessibility, give more flexibility and fine-tune the ways of content presentation with style sheets. Another advantage of a CSS program is that different pages could share formatting from one CSS script file with style sheets, and eliminate the need to write the same code CSS over and over again. CSS script can also enable the option for single HTML page to be served in a variety of forms for different purposes, like on-screen reading, in print or by voice/touch recognition software. CSS script can also be utilized to adapt web pages to display differently according to the screen size or device on which the CSS program is being viewed.


CSS Secrets Explained

CSS script has an easy syntax and uses a set of keywords which correspond to the different style properties. Every style sheet has a list of rules. Each one of them consists of one or more selectors and a declaration block. Declaration-blocks are made of a lists of declarations surrounded by braces. They include property, a colon (:), and a value. If more than one declarations are present in a block of CSS program, a semi-colon (;) must separate each one of them. When you code CSS script it has selectors and uses them to specify which style points to what portion of the content with style sheets. Selectors could be applied to all elements of a specific type, or to separate groups. CSS supports pseudo-classes in selectors to allow formatting built on data that is outside the page structure. Hover which is such a pseudo-class recognizes content only when the user mouseovers to the visible element, often by keeping the mouse pointer over it. A pseudo-class categorizes page elements with style sheets, such as :link or :visited. On the other hand, a pseudo-element creates a selection that may be made of partial elements like :first-line or :first-letter. Selectors may be used together in many combinations with a CSS program, especially in CSS 2.1, to achieve great accuracy and mobility.


It's Time to Share Your Story.

Get Free Web Hosting. Start a website, and introduce yourself to the world.

Are You Ready to Create Your Website?