1. Introduction to CSS
Cascading Style Sheets is a technology used to beautify
website page views (the site). With the overall color and CSS Method
display in a web site can be converted / reformatted quickly. CSS also
been in standartkan by the World Wide Web Consortium (W3C) for use on the web
browser.
Readmore..
Example:
<h1 style="color:red;"> Red, hahaha ...</ h1>
2. The terms in the Style Sheet
Style rules
Cascading style sheets is a collection of rules that define
style from the document. As an example we can create the style rules
determine that all <H2> display with the color orange.
Style sheets
Style sheets can be embedded into HTML document. Or called
embedded style sheet. Style sheets can also be made as an external file
and the link to an HTML document. Style roles can be wearing on the
of a certain web page. For example you can determine
certain paragraphs in the show with bold and italic style while
others remain as usual.
Selector
property1 {selector: value, property2: value,. . .}
h1 {color: green; background-color: orange;}Style sheets consist of two parts:
1. Selector
The first part before the "{}" is called selector
2. Declaration
Consisting of the property and its value.
3. Use the style element
Let's start by setting the font color and background. You
can do this by using the style element to
set the character code tags of your document.
a. Inheritance (Inheritance):