Microdata là gì?
Microdata là gì?
Microdata là cách gắn dữ liệu có cấu trúc (Schema.org) vào HTML bằng thuộc tính itemscope, itemtype, itemprop, để máy (công cụ tìm kiếm) hiểu ý nghĩa nội dung.
<div itemscope itemtype="https://schema.org/Product">
<h1 itemprop="name">Tai nghe Bluetooth X</h1>
<img itemprop="image" src="x.jpg" alt="Tai nghe X">
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<span itemprop="priceCurrency" content="VND">₫</span>
<span itemprop="price" content="990000">990.000</span>
<link itemprop="availability" href="https://schema.org/InStock">
</div>
<div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
<span itemprop="ratingValue">4.6</span>/5 (<span itemprop="reviewCount">128</span> đánh giá)
</div>
</div>
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.