How To Code CSS Script

how to code 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 a other 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

code css program with style sheets

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 a 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.

Free Website Hosting

free website hosting

With our free website hosting plans you can use HTML and CSS to edit and customize your site. You can also use the WYSIWYG editors of Joomla or WordPress, which we offer for free. With our paid shared hosting you can get even more free CMSs and website builders to quickly launch your site. Our shared plans start at $24.00£24.0024.00€ per year.

Personal Hosting Plan

$24.00£24.0024.00€ per year

    Unlimited Disk Space
    Unlimited Monthly Traffic
    2 Domains Hosting
    MySQL & PostgreSQl
    PHP5, Perl, ASP.NET
    1 FREE domain for 1 year
<< Go Back to Hosting Encyclopedia  
We use cookies to ensure you can get the best experience on our site. If you keep using this site we assume that you agree to our use of cookies. Privacy Policy OK