JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
function afterText() {
var txt1 = "<b>I </b>"; // Vytvoří element s HTML
var txt2 = $("<i></i>").text("love "); // Vytvoří elelment s jQuery
var txt3 = document.createElement("b"); // Vytvořit s DOM
txt3.innerHTML = "jQuery!";
$("img").after(txt1, txt2, txt3); // Vytvoří nový element za img
}
</script>
</head>
<body>
<img src="https://jquery.com/jquery-wp-content/themes/jquery/images/logo-jquery.png" alt="jQuery">
<button onclick="afterText()">Vložit za obrázek</button>
</body>
</html>