<title>jQuery Demo example</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js">
<script type="text/javascript">
$(document).ready(function(){
$( "#htmlExample" ).on( "click", function(event) {
$("div").html("<h3>I have been added using html() method..</h3><span style='background:yellow;'>Span....</span>.");
<h4 ><a href="javascript:void(0);" id="htmlExample">Click to run .html() Example </a></h4>