html中属性的含义 [英] Meaning of property attribute in html

查看:130
本文介绍了html中属性的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在其中一个网站上看到,有一些标签定义了属性属性。
例如: -

 < span property =amount> 100< / span> 

我在网上搜索过,但至少在w3schools上没有属性属性。
有人可以告诉我它的作用是什么。



我试图运行一个简单的html代码,但我不明白它的重要性。



有人可以解释吗?

解决方案

property 是一个RDFa属性。你所看到的可能与此有关。

请参阅 http:// www .w3.org / 2010/02 / rdfa / sources / rdfa-lite / 第2.1节vocab,typeof和property

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?

解决方案

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

这篇关于html中属性的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆