content
The content property dictates what is rendered inside an element or pseudo-element. 1. Inserting and replacing content with the content property
Links about content
Here’s what I didn’t know about “content”
In part 3 of my series I’m trying to find out what I didn’t know about the `content` property.
The CSS “content” property accepts alternative text
The CSS ‘content’ property allows a way to provide an alternative text
CSS Content | CSS-Tricks
CSS has a property called content. It can only be used with the pseudo elements :after and :before. It is written like a pseudo selector (with the colon),
content
The content CSS property replaces an element with a generated value. Objects inserted using the content property are anonymous replaced elements.
Code sample
a::after {
content: " (" attr(href) ")";
}
Explore other pages
- contain
Indicate that an element and its contents are independent of the rest of the document tree.
- button
A control allowing a user to trigger actions.
- aria-relevant
Indicates what notifications the user agent will trigger. "
- rel
Defines the type of link.