用于显示路径/目录的语义HTML标记? [英] Semantic HTML tag for displaying a path/directory?

查看:135
本文介绍了用于显示路径/目录的语义HTML标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



例如:<路径>使用者/专案/< p>是否有任何标记适合标记路径或目录? / path>



我已经检查过所有新的HTML5标记,但似乎没有一个适合此目的。那么哪一个会接近?

解决方案

不幸的是,HTML中没有任何东西。您可以尝试将其封装在HTML5的< pre> 标签或< code> 中。否则,您可以使用< span> 标记并设置其样式。


Is there any tag that's suited to markup a path or directory?

For example: <path>user/project/</path>

I've checked all new HTML5 tags but there doesn't seem to be one that fits this purpose. So which one would come close?

解决方案

Unfortunately there isn't anything in HTML for that. You could try to wrap it in a <pre> tag or <code> in HTML5. Otherwise you can use a <span> tag and style it how you want it to look like.

这篇关于用于显示路径/目录的语义HTML标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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