How to create a new window in HTML for a single image

Updated: 01/24/2018 by Computer Hope
new window for html single image

If you place a link to an image URL in the <a> tag, you can open that image in a new window below.

Example

<a href="https://www.computerhope.com/cdn/bigmb.jpg">Computer Motherboard</a>

Using the code above creates a link with the text "Computer Motherboard" that directs the user to a big picture of a computer motherboard.

Computer Motherboard