What do these characters mean in html?
I found this code while surfing through jquery hint. Please suggest why we are using certain code and what does it mean?
<pre class="prettyprint">
<head>
<script>
$(document).ready(function() {
$('.tooltip').tooltipster({
contentAsHTML: true
});
});
</script>
</head>
<body>
<div class="tooltip" title="&lt;img src=&quot;my- image.png&quot; /&gt; &lt;strong&gt; This text is in bold case !&lt;/strong&gt;">
This div has a tooltip with HTML when you hover over it!
</div>
</body></pre>
source to share
The code you entered is html encoded, which means with html special characters:
<script>
$(document).ready(function() {
$('.tooltip').tooltipster({
contentAsHTML: true
});
});
</script>
</head>
<body>
<div class="tooltip" title="<img src=my-image.png /> <strong> This text is in bold case!</strong>">
This div has a tooltip with HTML when you hover over it!
</div>
</body></pre>
ISO-8859-1 is the default character in HTML 4.01, see the XML and HTML character list for more information.
For example, "<" is "<" (less-than sign, U+003C)
The code you were trying to understand creates a tooltip when the user hovers the mouse over a div with text
This div has a tooltip with HTML when you hover over it!
The dashboard content is between the title tag, so
<img src=my-image.png /> <strong> This text is in bold case!</strong>
img - show image ant text between strong ... strong :-)
source to share
Please refer to this resource for a better understanding http://w3schools.com/HTML/html_entities.asp
source to share