+ 1
How to insert image tag in php script?
4 Answers
+ 2
@javaspell or use single quote
+ 1
2 solutions
1 - close your php tag and write html code with img tag
2 - write something like echo "<img ...\>" in your php code
+ 1
an example with h1 tag
https://code.sololearn.com/wXa4JY10be8f/?ref=app
0
you need to escape the quotes like this
<?php
echo "<hr/>";
echo "<img src=\"image.jpg\" alt=\"Image\">";
?>