You are not logged in.

#1 2014-10-05 05:07:45

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

What is css(Cascading Style Sheet)?

Cascading Style Sheets (CSS):


A style sheet language used for describing the look and formatting of a document written in a markup language. While most often used to change the style web pages and user interfaces written in HTML and XHTML, the language can be applied to any kind of XML document, including plain XML, SVG and XUL. CSS is a cornerstone specification of the web, and almost all web pages use CSS style sheets to describe their presentation.

Separation Of Document Content:


CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). It obviates those portions of markup that would specify presentation by instead providing that information in a separate file. For each relevant HTML element (identified by tags), it provides a list of formatting instructions. For example, it might say (in CSS syntax), "All heading 1 elements should be bold." Therefore, no formatting markup such as bold tags (<b></b>)is needed within the content; what is needed is simply semantic markup saying, "this text is a level 1 heading."

Markup Page:


CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and on Braille-based, tactile devices. It can also be used to allow the web page to display differently depending on the screen size or device on which it is being viewed. While the author of a document typically links that document to a CSS file, readers can use a different style sheet, perhaps one on their own computer, to override the one the author has specified. However if the author or the reader did not link the document to a specific style sheet the default style of the browser will be applied.

CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable.

Last edited by husnain (2014-10-11 07:29:57)


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2014-10-05 05:07:45

Advertisement
Ads By Google

Re: What is css(Cascading Style Sheet)?



\n
The following user say "Thank You" for this post:Guest

Board footer