Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of property attribute in html

Tags:

html

I just saw on one of the sites there is property attribute defined with some tags. For example:-

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

I searched on net but there was no property attribute as such on w3schools atleast. Can somebody please tell me what is it's role.

I am trying to run a simple html code but i don't understand its importance.

Can somebody please explain?

like image 222
Sachin Avatar asked Jun 04 '12 11:06

Sachin


People also ask

What are property attributes?

Structural attributes are the characteristics of the fabricated structures on a site, including the design, materials, scale, features, quality and other items that define a building or structure.

What is difference between property and attribute?

An attribute is a quality or character ascribed to or considered to belong to, or be inherent in, a person or thing. A property is a quality or characteristic belonging to a person or thing, with its original use implying ownership, and also either being essential or special.

What are the 4 attributes of HTML?

The attribute is most useful with A, AREA, LINK, and IMG elements, where it provides a title for the linked or embedded resource.


1 Answers

property is an RDFa attribute. What you are seeing is probably related to that.

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

like image 186
Alohci Avatar answered Sep 28 '22 04:09

Alohci