Clancy19 Posted October 2, 2009 Share Posted October 2, 2009 Why wont this coding make my picture into a hyperlink. The picture is called basic and in saved in the same folder as the html document. I want to to link it to another page called basic.html. why doesnt this code work? How do i fix it? <a href="basic.php"><img= src="basic.jpg" alt="basic.php"/></a> Link to comment https://forums.phpfreaks.com/topic/176284-solved-picture-hyperlinking/ Share on other sites More sharing options...
Bricktop Posted October 2, 2009 Share Posted October 2, 2009 Hi Clancy19, <img= is the incorrect syntax, change your code to read: <a href="basic.php"><img src="basic.jpg" alt="basic.php"/></a> Hope this helps. Link to comment https://forums.phpfreaks.com/topic/176284-solved-picture-hyperlinking/#findComment-929040 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.