Interview Question

What is the target attribute?

Target controls where a link or form result opens.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

The `target` attribute chooses where a linked page opens. β€’ It is written inside an element’s opening tag. β€’ The HTML Standard limits which elements may use it and which values are valid. β€’ Browsers apply the attribute when they process the element or the resource it controls.

💡 Simple Example

<a href="/help" target="_blank" rel="noopener">Help</a>

⚡ Quick Revision

Target controls where a link or form result opens.