<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        body {
            font-size: 13px;
        }
        img {
            border: 1px solid #CCCCCC;
            padding: 3px;
            margin: 5px;
        }
        span {
            border: 2px solid black;
        }
    </style>
    <script src="../js/jquery-3.5.1.js"></script>
    <script>
        $(function () {
            $("#btn1").click(function () {
                $("img").appendTo("span");
                });

        });
    </script>
</head>
<body>
    <img title="2008" src="images/img03.jpg">
    <span><img title="2010" src="images/img04.jpg"></span>
    <input type="button" value="appendTo" id="btn1">
</body>
</html>