Search code examples
xhtmltransitional

Is this possible in XHTML: tags in a title-attribute?


I got following code in an XHTML-document and every browser saysit is malformed :(

<a      class="tooltip" 
        title="Um nach einem <b>Datensatz zu suchen</b>, k&ouml;nnen Sie mehrere 
                Suchbegriffe auf einmal eingeben!<br />
                Um <b>Zeilen zu l&ouml;schen</b>, selektieren Sie diese bitte und 
                klicken dann auf <i>'Zeile(n) l&ouml;schen'</i>.<br />
                Um <b>einen Datansatz zu bearbeiten</b>, klicken Sie einfach zweimal 
                auf die Zelle und dann auf <i>'Done'</i>.<br />
                Um <b>eine Zeile hinzuzuf&uuml;gen</b>, klicken Sie auf <i>'Zeile 
                hinzuf&uuml;gen'</i>. Anschlie&szlig;end k&ouml;nnen Sie diese direkt
                editieren"
>
    <img src="img/info.png" width="35px" height="35px" id="fernglas" />
</a>

Now, is it malformed or not? If so, how could I make it right? Thnx in advance

... dg


Solution

  • You can indeed use HTML character entities in the title attribute of a tag. However, you are trying to use HTML tags, which does not appear allowed. You won't be able to use things like bold and italics, but you will be able to add line breaks and some other simple formatting.