Html
<html>
<!-- heading -->
<head>
<meta charset="utf-8">
<title>Example</title>
</head>
<!-- page -->
<body>
<!-- connect the library jQuery -->
<script src="https://dir.by/example_lib/jquery/jquery-3.3.1.min.js"></script>
<!-- HTML Elements -->
<div id="div1">
Hello!
</div>
<div id="div2">
Good Bye!
</div>
<!-- JavaScript -->
<script>
// the page has opened
$( function()
{
// Insert <font color='green'>my text</font> after the element target
var target = $("#div1");
var newElement = $("<font color='green'>my text</font>").insertAfter(target);
});
</script>
</body>
</html>