我正在为医疗机构的工作人员添加标签,我想添加Microdata。但我不确定如何标记员工。
可能是这样:
<div itemscope itemtype="http://data-vocabulary.org/Person">
<h3><span itemprop="affiliation">Marckay</span> Staff</h3>
<h4 itemprop="title">Medico Fisiatra</h4>
<span itemprop="name">Dra. María Sylvina Iaconianni</span>
<span itemprop="name">Dr. Gustavo Adolfo Andrade</span>
<span itemprop="name">Dr. Matías Merkusa</span>
<h4 itemprop="title">Area Médica-Pediatria</h4>
<span itemprop="name">Dra. Cecilia Petriz</span>
<h4 itemprop="title">Kinesiologia</h4>
<span itemprop="name">Lic. Constanza Alonso</span>
<span itemprop="name">Lic. Maria Carolina Alvarez</span>
<span itemprop="name">Lic. Cristina Elizabeth Amuchastegui</span>
<span itemprop="name">Lic. Matias Damian Brito</span>
<span itemprop="name">Lic. Maria Lourdes Campos</span>
<span itemprop="name">Lic. Silvia Teresa Gimenez</span>
<span itemprop="name">Lic. Magdalena Ines Macagno</span>
<span itemprop="name">Lic. Rocio Martinez</span>
<span itemprop="name">Lic. Jonathan Medina</span>
<span itemprop="name">Lic. Sergio Mercado</span>
</div>
或者可能是:
<div itemscope itemtype="http://data-vocabulary.org/Person">
<h3><span itemprop="affiliation">Marckay</span> Staff</h3>
<h4 itemprop="title">Medico Fisiatra</h4>
<span itemprop="name">Dra. María Sylvina Iaconianni</span>
<span itemprop="name">Dr. Gustavo Adolfo Andrade</span>
<span itemprop="name">Dr. Matías Merkusa</span>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Person">
<h4 itemprop="title">Area Médica-Pediatria</h4>
<span itemprop="name">Dra. Cecilia Petriz</span>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Person">
<h4 itemprop="title">Kinesiologia</h4>
<span itemprop="name">Lic. Constanza Alonso</span>
<span itemprop="name">Lic. Maria Carolina Alvarez</span>
<span itemprop="name">Lic. Cristina Elizabeth Amuchastegui</span>
<span itemprop="name">Lic. Matias Damian Brito</span>
<span itemprop="name">Lic. Maria Lourdes Campos</span>
<span itemprop="name">Lic. Silvia Teresa Gimenez</span>
<span itemprop="name">Lic. Magdalena Ines Macagno</span>
<span itemprop="name">Lic. Rocio Martinez</span>
<span itemprop="name">Lic. Jonathan Medina</span>
<span itemprop="name">Lic. Sergio Mercado</span>
</div>
否则我想象每个人<div itemscope itemtype="http://data-vocabulary.org/Person">
,但会发生纠结。
您怎么看?
答案 0 :(得分:1)
在你的例子中,一个人会有几个名字。
每个人都需要一个单独的项目。
<div>
<h3><span>Marckay</span> Staff</h3>
<h4>Medico Fisiatra</h4>
<div itemscope itemtype="http://data-vocabulary.org/Person">
<span itemprop="name">Dra. María Sylvina Iaconianni</span>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Person">
<span itemprop="name">Dr. Gustavo Adolfo Andrade</span>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Person">
<span itemprop="name">Dr. Matías Merkusa</span>
</div>
<h4>Area Médica-Pediatria</h4>
<div itemscope itemtype="http://data-vocabulary.org/Person">
<span itemprop="name">Dra. Cecilia Petriz</span>
</div>
</div>
(这同样适用于Schema.org的Person
type,您可能希望使用它来代替Data-Vocabulary.org。)