Html property attribute value

I just saw on one of the sites a property attribute defined with some tags. For instance: -

<span property="amount">100</span>

I searched on the net, but the attribute of the property as such on w3schools at least was not. Can someone please tell me what this role is.

I am trying to run simple html code, but I do not understand its importance.

Can someone explain?

+5
source share
3 answers

propertyis an attribute of RDFa. What you see is probably related to this.

See http://www.w3.org/2010/02/rdfa/sources/rdfa-lite/ Section 2.1 vocab, typeof and property

+6
source

This is a non-standard invalid code.

, , (, JavaScript).

HTML5, data-property, property.

+1

This is not a standard attribute.
It is probably used by a special code on this site.

It would be more correct to use the attribute data-*for such things.

0
source

All Articles