html link target new tab code example Example 1: where to use .target command in html <a target="_blank" href=""> Example 2: href target new window target="_blank"