爲了讓我的內聯SVG圖像更易搜索谷歌,你可以添加諸如「路徑」「圓」「線」等svg元素內的ALT /標題屬性/屬性?我可以在SVG元素中使用alt和title屬性嗎?
我已經知道了,你可以在「SVG」標籤內使用標題標籤,這樣的..
<svg>
<title>this is a title tag.</svg>
</svg>
下面是我所談論的一個例子。
<svg version="1.1" id="Layer_1">
<style type="text/css">
.st0{fill:none;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-miterlimit:10;}
</style>
<path class="st0" title=「this is what I am talking about」 d="M567,1136.2l37,10.9c13.3,3.9,27.2,3.1,39.9-2.4l0.6-0.3"/>
<line id="hi2" class="st5" alt=「This is what I am Talking About」 x1="72" y1="-169.7" x2="108" y2="-169.7"/>
</svg>