如何将图像放入标题中。我并不是指使用以下内容创建的互联网选项卡图标:
<link rel="icon" href="image.png">
我想在我的标题中再添一个.png。类似的东西:
<title>Website text <link rel="icon" href="image2.png"></title>
你是怎么做到的?
答案 0 :(得分:2)
你做不到。 A <title>
tag can't (validly) contain any other tags。但是,你可以使用表情符号(或任何Unicode字符)并获得相当不错的跨浏览器渲染,如果有一个表情符号或其他字符看起来像你想要使用的图像。