href target blank code example
Example 1: html new target
Opens the linked document in a new window or tab
Opens the linked document in the same frame as it was clicked (this is default)
Opens the linked document in the parent frame
Opens the linked document in the full body of the window
Example 2: href target new window
target="_blank"
Example 3: target _blank on a link_to
link_to "allrecipes", "http://www.allrecipes.com", target: "_blank", class: "p-12 rounded-lg font-bold"