Over a million developers have joined DZone.

Showing Attributes Content After Element (like Link Hreflang)

·
You can use pseudo-elements to insert content via CSS, and you can retrieve elements attributes to show them as new pseudo-elements.

Example : show links hreflang attribute.

XHTML :

a link to a french page

CSS :

a:after {
	content: attr(hreflang);
	color: #999;
	margin-left: 0.2em;
}
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}