If you know javascript, this can help you; if not then you have to learn at least the basics if you want to do things like what you're trying to do here. Inside your <header>
tag, insert the following javascript code:
function addtext(){
document.getElementById('displaytext').innerHTML='THis is a text';
}
then inside your img tag,add this event: onclick='addtext();'
remove your anchor tags then
add this tag after your img tag: <span id='displaytext'></span>
your code should look something like this:
<html>
<head>
<script>
function addtext(){
document.getElementById('displaytext').innerHTML='THis is a text';
}
</script>
</head>
<body>
<img src="hh.jpg" width="100" figcaption="has" onclick='addtext();>
<br>
<span id='displaytext'></span>
</body>
</html>