Premium Partner

HTML &CSS

HTML und CSS lernen

HTML und CSS lernen


Kartei Details

Karten 40
Sprache Deutsch
Kategorie Informatik
Stufe Universität
Erstellt / Aktualisiert 02.11.2019 / 15.01.2024
Lizenzierung Keine Angabe
Weblink
https://card2brain.ch/box/20191102_html_css
Einbinden
<iframe src="https://card2brain.ch/box/20191102_html_css/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>

p { }

Alle p-Elemente

        /* Verändert die Farbe von p*/

        p{

            colorseagreen;

        }

 

--------------------------------------------------------------------

 

        /* Verändert die Farbe von h1*/

        h1{

            colorsalmon;

        }

p, a { }

Alle a-Elemente und p-Elemente

 

        /* Alle p Elemente UND h1 ein Underline*/

        h1p{

            text-decorationunderline;

        }

p a { }

Alle a-Elemente innerhalb von p (alle Nachfahren) ****

        /* Alle a Elmente innerhaln einers ul Element*/

        ul a{

            colorchartreuse;

        }

--------------------------------------------------------------

 

        /* Alle span in div's ( Egeal wie weit weg Grosseletrn usw.)*/

        div span{

            colorhotpink;

        }

 

/*Diese Regeln macht die erste Spalte jeder Zeile in einer Tabelle fettgedruckt*/

#data-table-1 td:first-child { 

     font-weight: bolder; 

 

.foo { }

Alle Elemente der Klasse ’foo’

        /* Alle Klassen foo bekommen monospace*/

        .foo{

            font-familymonospace;

        }