C.S.S. stands for Cascading Style Sheets; documents which contain styling rules for applying to HTML (or XML, along with a few other structural formats). Multiple style rules can point to one HTML element, in which case there needs to be a way to determine which rule should take effect. The term cascadingdescribes the process of filtering down from general rules, until the most specific rule is encountered. That rule is then chosen to do its work..
Through CSS, presentation can be separated from structure. It solves the need for mashing styling rules in amongst HTML, like this;
CSS is read by web browsers. They take the markup document, then they apply the styling rules to the elements within that document.
They don't always interpret style rules the same as each other, and as browsers develop so too does their support of newer styling proposals. It's often the browser manufacturers themselves who experiment with CSS properties, in the hope that their suggestions will be adopted by users.
Syntax
CSS syntax comprises a few fundamental pieces; rules, selectors, declarations, properties and values.
How does CSS actually work?
When a browser displays a document, it must combine the document's content with its style information. It processes the document in two stages:
The browser converts HTML and CSS into the DOM (Document Object Model). The DOM represents the document in the computer's memory. It combines the document's content with its style.
The browser displays the contents of the DOM.
CSS Colors
Colors in CSS can be specified by the following methods:
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis. Read More
No comments:
Post a Comment