Home » Hosting Encyclopedia » Scripting Languages » CSS Script

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 a 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 that 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 list of declarations surrounded by braces. They include property, a colon (:), and a value. If more than one declarations are present in a block of a 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: links or: visits. 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.


Was this article useful?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Newest Articles:


What you need to know: KVM (Kernel-based Virtual Machine) is a virtualization technology that is free, open-source, and available in most modern Linux distributions. Thanks to it, you can create and run Linux and Windows-based virtual machines that are independent of...

Second Level Domain (SLD)

The Second Level Domain or SLD is essential to the hierarchical Domain Name System. It is the second part of the full domain name after the Top Level Domain, on its left side. The Second Level Domain is often the same as the website name, the company, or the...

Top-Level Domain (TLD)

The Top Level Domain name (TLD) is the last or right-most fragment of the domain name. The parts of the domain name are separated with dots and form their own hierarchy in the Domain Name System (DNS). There is a Top-Leveл Domain list where you can see all available...


What is IANA? Although the Internet is not really a centralized system, there are some key infrastructure elements that need to be coordinated. The Internet Assigned Numbers Authority (IANA) is an organization that was founded in 1988 by the government of the U.S.A....


What is ICANN? ICANN is an abbreviation from Internet Corporation for Assigned Names and Numbers. It is the non-profit organization that’s responsible for the assignment and coordination of unique Internet addresses and names for all devices connected to the Internet,...

Ready to Create Your Website?