/* Set 0.8 opacity on <img> elements */
img {
opacity: 0.8;
}CSS properties / notebook
CSS properties
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
/* Give <img> elements 1rem of margin */
img {
margin: 1rem;
}selector {
property: value;
}