I would like to know. Is it possible to set a variable in html and use that variable as the img src. I would be using the same image regularly and don't want to update it in ever tag each time I change it. I am new to Javascript and HTML.
I have tried this but knew it would not work. But tried it anyway.
<body>
<var a1>images/wildlife/dog.jpg</var>
<img src="var a1" id="event-1">
</body>
The image path is correct as it displays the image if i use that exact path as the src="..."
Can some please point me in the direction to accomplish this. I do not know alot about php and MySql.
<img src="images/wildlife/dog.jpg"/>?