Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Showing Attributes Content After Element (like Link Hreflang)

DZone's Guide to

Showing Attributes Content After Element (like Link Hreflang)

·
Free Resource
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:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}