If I make an anchor element and don't want text within it, because I'm gonna to css-i-fy it with a nice image and a hover-effect... I wonder if it is legal to write <a id="hoverimage" href="google.com" />
validome.org & validator.w3.org say YES ?xhtml自己閉鎖アンカー要素<a /> allowed?
BTW: anyone knows an equivalent to alt element for this case?
W3Cのバリデーターはあなたにそれが有効であると伝えているので、なぜ依然として尋ねられますか?クリック可能なイメージを作成したい場合は、 ''に ''を入れて、それにaltテキストを与えることができます。 – BoltClock
マークアップをXHTMLとして検証していますか?もしそうなら、その答えはかなり明瞭でなければならない。 –
*(参考)* http://www.w3.org/TR/xhtml1/#h-4.3、http://www.w3.org/TR/xhtml1/#h-4.6およびhttp:// www。 w3.org/TR/xhtml1/guidelines.html#C_3 – Gordon