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
- section
Represents a generic section of a document or application.
- async
Defines async functions inside expressions.
- aria-describedby
Identifies the element (or elements) that describes the object.
- multiple
Enables form controls to accept one or more values.