mirror of https://github.com/rjbasitali/tutorials
Merge branch 'main' of https://github.com/rjbasitali/tutorials
commit
6d1bdb05c5
|
|
@ -65,7 +65,7 @@ We can also select attributes with a prefix value, e.g. `[lang|="en"]` means ele
|
||||||
|
|
||||||
| Element with Attributes | Element with Specific Attribute Value | Element with Specific Attribute Value in List | Element with Specific Attribute Value/Value- |
|
| Element with Attributes | Element with Specific Attribute Value | Element with Specific Attribute Value in List | Element with Specific Attribute Value/Value- |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `[type] { color: red; }` | `[type="email"] { color: red; }` | `[lang~="en-us"] { color: red; }` | `[lang|="en"] { color: red; }` |
|
| `[type] { color: red; }` | `[type="email"] { color: red; }` | `[lang~="en-us"] { color: red; }` | `[lang\|="en"] { color: red; }` |
|
||||||
| `<input type="text">` | `<input type="email">` | `<p lang="en-us en-gb">Hi!</p>` | `<p lang="en-us">Hi!</p>` |
|
| `<input type="text">` | `<input type="email">` | `<p lang="en-us en-gb">Hi!</p>` | `<p lang="en-us">Hi!</p>` |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -197,4 +197,4 @@ To style a button element with `disabled` attribute, to give the user a clear fe
|
||||||
background: #ccc;
|
background: #ccc;
|
||||||
color: #a1a1a1;
|
color: #a1a1a1;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue