我可以混合和匹配rel属性吗? [英] Can I mix and match rel attributes?

查看:110
本文介绍了我可以混合和匹配rel属性吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 rel 属性的用法有点困惑。

I'm a little confused by the rel attribute usage.

个别地我明白 rel =author rel =me rel =publisher,但是我想知道是否可以混合和匹配属性值。

Individually I understand rel="author", rel="me" and rel="publisher", however I am wondering if I can mix and match attribute values.

示例1:On 我的网站,我在链接到我的域名的页脚中有一个链接。添加 rel =me rel =author rel =我的作者

Example 1: On my website, I have a link in the footer which links to my domain. Do I add rel="me", rel="author" or rel="me author"?

示例2:在我的网站我有一个链接到我的Twitter帐户。添加 rel =me rel =me publisher

Example 2: On my website I have a link to my twitter account. Do I add rel="me" or rel="me publisher"?

推荐答案

不能将多个rel属性添加到一个HTML元素中,但可以将多个参数插入到一个rel属性值中 - 只需将它们分隔a space:

You can't add more than one rel attribute into one HTML element, but you can insert more than one argument into one rel attribute value - just delimit them with a space:

<a rel="me author" href="my_page">
<a rel="me publisher" href="twitter_link">

这篇关于我可以混合和匹配rel属性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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