i would like to find out how to add a break in the title attribute, i would like to have breaks in the title attribute to differentiate the names. how can i add a break in the title attribute?
i have something like this
<p title="this is a description of the some text <br> and further description">Some Text</p>
what comes out is:
If the title attribute's value contains "LF" (U+000A) characters, the content is split into multiple lines. Each "LF" (U+000A) character represents a line break.
The <br> tag inserts a single line break. The <br> tag is useful for writing addresses or poems. The <br> tag is an empty tag which means that it has no end tag.
The <BR> element is used to force a line break.
Press ALT+ENTER to insert the line break.
If you add a new line where you want line breaks, it works on SOME browsers, but not all.
Example:
div { background-color: #c3c3c3; display: block; width: 100px; height: 100px; }
<div title="This is a text
Second line
Third line!">Contents</div>
JSFiddle:
http://jsfiddle.net/g5CGh/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With