CSS
Cascading Style Sheet
Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language. CSS3 is a latest standard of css earlier versions(CSS2). It is positioning properties, also suppoted by the most recent browser verisions, are included in this appendix.
Styles can be imported from an external file and expanded in place, similar to a macro. Importing can be used to include multiple style sheets. An imported style is defined with the <style> element and the type attribute, followed by the URL for the style sheet, as shown here:
<title>Skillpundit</title>
<link href="style.css" rel="stylesheet" type="text/css"> </head>
Document-wide styles can be embedded in a documents <HEAD> element using the <STYLE> element. Note that styles should be commented out to avoid interpretation by non-style-awarebrowsers.
<title>Skillpundit</title>
<style type="text/css"> p
{
font-family: arial; font-size: 14px; color: #aa12bb;
} </style> </head>
Styles can be applied directly to elements in the body of a document. Rather than set docuemnt-wide values for the <h1> element. It is possible to set the style for an individual header, as shown here:
Multiple Classes can be defined for individual elements (selectors). To create a class selector, attach a class name to a selector; separate the selector from the class name with a period. Repeat this with the same selector, but give it a different name.
{
font-family: arial; font-size: 14px; color: #aa12bb;
} p.two
{
font-family: arial; font-size: 14px; color: #aa12bb;
}
Styles can be assigned independent of elements by creating ID Selectors. Create an ID selector by creating a name preceded by the character # and following it with the style to be assoiated with that ID.
{
font-family: arial; font-size: 14px; color: #aa12bb;
}