Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

on-line

Haupt Quellenprogramme E-Bücher Downloads Mit uns in Verbindung treten Über uns

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


Grundlegende Syntax
Previous Next



Die CSS Syntax wird in drei Teile kategorisiert: ein Vorwahl, eine Eigenschaft und ein Wert:




Richtlinien
Syntax:
selector {property: value}

Jeder möglicher HTML Umbau ist ein möglicher Vorwahl CSS1. Du kannst verbunden mit einer bestimmten Art, die einfach HTML Element durch Vorwahl ist. Z.B. der Vorwahl innen

P { text-indent: 3em }
Class Selectors
Syntax of Class Selector:
.classname{property:value;}

Unterschiedliche Kategorien können in einem einzelnen Vorwahl definiert werden und das gleiche Element unterschiedliche Arten haben so lassen. Z.B. kann ein Autor möchte unterschiedliche Farbe verwenden, um Code abhängig von seiner Sprache anzuzeigen:

code.html { color: #191970 }
code.css { color: #4b0082 }

For example, with class~="pastoral" we can assign style information to all elements as follows:

*.pastoral { color: green } /* all elements with class~=pastoral */

With class~="pastoral",the following code assigns style only to H1 elements :

H1.pastoral { color: green } /* H1 elements with class~=pastoral */
Given these rules, the first H1 instance below would not have green text, while the second would:
<H1>Not green</H1>
<H1 class="pastoral">Very green</H1>
Without an associated element,classes may also be declared :
.note { font-size: small }
ID Selectors
Syntax of ID Selector:
#idname{property:value;}

ID selectors are individually assigned for the purpose of defining on a per-element basis. Due to its inherent limitations,this selector type should only be used sparingly . By using the indicator "#"to precede a name,an ID selector is assigned . For example, an ID selector could be assigned as such:

#svp94O { text-indent: 4em }



Grouping

Der Gruppierung der Vorwahl und der Erklärungen wird erlaubt, um repetitious Aussagen innerhalb der Artblätter zu verringern. Z.B. in einem Dokument, konnten alle überschriften identische Erklärungen durch eine Gruppierung abgegeben werden:

h1,h2,h3,h4,h5,h6
{
color: blue
font-family: sans-serif
}


CSS Comments

Comments are denoted within style sheets is same as Comments in C programming .

Comments may help you when you edit the source code at a later date and are used to explain your code. A comment will be ignored by browsers. A CSS comment begins with "/*", and ends with "*/", like this

/* COMMENTS CANNOT BE NESTED */



Previous Next

Keywords: css syntax html element, cascading style sheets, style sheets, css syntax attribute


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.