What is the purpose of the target attribute in the anchor tag?
- To define where the linked document will be opened.
- To set the color of the link.
- To specify the duration of link hover.
- To specify the font-size of the text.
The target attribute in the anchor tag determines where the linked document will be displayed when the link is clicked. For instance, it can open the link in the same window, a new tab, or even a new window entirely. It provides flexibility in user navigation experience by controlling the browsing context.
Loading...
Related Quiz
- What is the purpose of the "legend" element within a fieldset?
- How does browser support affect the usage of image maps, and what are the alternatives?
- You are developing a scientific web page, and you need to display chemical equations. How would you use HTML tags to format the subscript and superscript in chemical equations?
- Which section of the HTML document typically contains meta tags and links to stylesheets?
- Which HTML tag is used to render text as bold?