Cascading Style Sheet

Cascading Style Sheet


SS may refer to any of the following:

  • Short for cascading style sheets, CSS is a language used to describe reusable styles for presenting documents written in a markup language. Its concept was originated by Håkon Wium Lie in 1994. In December 1996, CSS was made a specification by the W3C and today allows web developers to alter the layout and appearance of their web pages. For example, CSS may be used to change the font used in certain HTML element, as well as its size and color. A single CSS file may be linked to multiple pages, which allows a developer to change the appearance of all the pages at the same time.

  • The following box contains a basic example of using CSS code to define fonts, the color of hyperlinks, and the color of a link when the mouse cursor hovers over. In this specific example, we are only changing the HTML tags and , rather than creating any new class or id selectors.

    body {
    font: normal 100% "trebuchet ms", Arial, Helvetica, sans-serif;
    }
    a {
    color: #000000;
    }
    A:visited {
    color: #005177;
    }
    a:hover {
    color: #005177;
    }

  • The CSS code in the box above can be inserted into the head section of a page's HTML using the following code. However, keep in mind that performing this action only applies these changes to a single page.



  • If you want to use the CSS code on multiple pages, we suggest storing the code in a separate CSS file and then loading it on every page. For example, the CSS code shown in the first box on this page can be copied and pasted into a file with the .css file extension.

    Tip

  • A CSS file can be created using any text editor or even Notepad if you're using Windows.

  • After the file is saved, it must linked to in the head of the HTML code using the tag. The following box shows an example of this element in use.


    If you named the CSS file example.css, and it's in the same directory as the HTML file it's being loaded from, the following line would link the CSS file.


    CSS3 is the version of CSS (Cascading Style Sheets) that replaces CSS2. It
    introduces new selectors and properties that allow for more flexibility with page layout and presentation. Some updates, such as the box-shadow property (which allows a drop shadow to be added to an element), allow visual effects to be applied without the need for creating special images.

    Is CSS a markup language?

  • No. CSS is a style sheet language that gives appearance changes to a markup language. For example, HTML is used to create the basic layout of a web page such as this paragraph of text. CSS is used to define the font, font size, font weight, its position, and other visual settings.


    What is an Operating System? » Computer Shortcut Keys and their Functions » Keyboard Function Keys » Computer Basics - Hardware - Software - Parts

    Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories
    Proverb Stories
    Powerful Motivational Quotes for Students » Success Quotes » English Short Stories for Kids

    Cabin Crew Jobs & Career Advice » Secretary Job Description » Receptionist Job Description » Top 100 Interview Questions and Answers » How to Prepare for an Interview » How to Write a CV » How to Choose a Career » Computer Shortcut Keys and their Functions

    Scholarships in Australia » Scholarships in Austria » Scholarships in Belgium » Scholarships in Canada » Scholarships in Germany » Scholarships in Ireland » Scholarships in Italy » Scholarships in Japan » Scholarships in Korea » Scholarships in Netherlands » Scholarships in Switzerland » Scholarships in UK » Scholarships in USA

    Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories

  • Click here to post comments

    Join in and write your own page! It's easy to do. How? Simply click here to return to Computer Basics FAQ.