hey guys i need help with sumthing, i dunno if this is considered html or not but u guys know the tag [IMG](url)[/IMG] how can i put a hyperlink on that if its possible?? like u click on that picture and it will lead to a link, is that possible?? thanks guys!!

Dani AI

Generated

A quick, practical follow-up to this thread: as asked about making an image clickable and noted, forums and HTML both let you make an image act as a link. Below are modern, actionable best practices and a simple HTML example to use where HTML is permitted. If the board only accepts BBCode, check its help page for the exact nesting rules or use the attachment/uploader instead.

<a href="https://example.com" target="_blank" rel="noopener noreferrer">
  <img src="https://example.com/photo.jpg" alt="Short description" width="600" height="300" loading="lazy" />
</a>

Checklist and quick tips

  • Always include an alt description for accessibility and clarity (see WebAIM alt text).
  • If opening in a new tab, use rel="noopener noreferrer" with target="_blank" to avoid exposing window.opener (see MDN noopener).
  • Add width/height and consider loading="lazy" to reduce layout shift and speed up page load (see MDN img loading).
  • Use HTTPS image URLs to avoid browser mixed-content blocking (see MDN mixed content).
  • If a clickable image does not work: verify the forum allows nested tags, confirm the image URL points directly to an image file, check for hotlink protection, and inspect the browser console for errors.

These steps make clickable images reliable, faster, and safer across browsers and screen readers.

Recommended Answers

All 3 Replies

That's forum BBCODE, not HTML. So I'll assume you mean exactly what you say, and you need to know how to place a hyperlinked image within a forum message: Just nest them:

http://www.tgreer.com/tgroup.png

[URL="http://www.tgreer.com"][IMG]http://www.tgreer.com/tgroup.png[/IMG][/URL]

Of course, the same works with regular HTML: place your img tags inside your anchor tags.

thank u very much!! really appriciate it, sry for posting on the wrong section!

No problem - I don't we have a section dealing with BBCode, so don't worry about it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.