CSS content Property
The following precedent embeds the URL in bracket after each link:
content: " (" attr(href) ")";
More "Attempt it Yourself" models below.
Definition and Usage
The content property is utilized with the :previously and :after pseudo-components, to embed produced content.
The numbers in the table determine the primary program form that completely bolsters the property.
Note: IE8 possibly underpins the substance property if a !DOCTYPE is specified.
|normal||Default esteem. Sets the substance, whenever determined, to ordinary, which default is "none" (which is nothing)|
|none||Sets the substance, whenever indicated, to nothing|
|counter||Sets the substance as a counter|
|attr(attribute)||Sets the substance as one of the selector's attribute|
|string||Sets the substance to the content you specify|
|open-quote||Sets the substance to be an opening quote|
|close-quote||Sets the substance to be an end quote|
|no-open-quote||Removes the opening statement from the substance, if specified|
|no-close-quote||Removes the end quote from the substance, if specified|
|url(url)||Sets the substance to be some sort of media (a picture, a sound, a video, etc.)|
|inherit||Inherits this property from its parent component. Read about inherit|