CSS Tutorial 35 - Attribute Selectors

Veröffentlicht am: 12 Dezember 2017
auf dem Kanal: Struct Feed
55
1

In this CSS tutorial, I go over selecting HTML elements with attaribute selectors. To use attaribute as selectors, you just need to put the attribute in square brackets....

[attribute = "attribute value"] {
/* Your CSS here */
}

you can also add ~ before equal (=) sign and this will select all elements where the attribute has the word separated by space or by it self
[attribute ~= "attribute value"]

you can also add | before equal (=) sign and this will select all elements where the attribute has the word separated by dash (-) or by it self
[attribute |= "attribute value"]

using [attribute ^= "attribute value"] selects all that begin with the value supplied.

using [attribute $= "attribute value"] selects all that end with the value supplied.

using [attribute *= "attribute value"] selects all that contain the value supplied.


Auf dieser Seite können Sie das Online-Video CSS Tutorial 35 - Attribute Selectors mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Struct Feed 12 Dezember 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 55 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!