HTML and CSS Certification 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

How can you make a hyperlink open in a new tab?

By using the target="_new" attribute.

By using the target="blank" attribute.

By using the target="_blank" attribute.

Using the target="_blank" attribute in an anchor tag is the correct method for making a hyperlink open in a new tab. When this attribute is present, it instructs the web browser to load the linked resource in a separate tab or window, depending on the browser's configuration and settings. The value "_blank" is a predefined value that browsers recognize specifically for this purpose.

This attribute ensures that users can keep the original page open while accessing the linked content, enhancing navigation experience and allowing for multitasking. It is widely supported across all major browsers, making it a reliable choice for developers.

Other options either use incorrect syntax or refer to non-standard attributes that do not comply with HTML specifications for opening links in a new tab.

Get further explanation with Examzify DeepDiveBeta

By using the newtab attribute.

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy