HTML target attribute target attribute allows the linked document to open in the current or new window. Preview CodePreview ExampleTry itExampleCopyTry it<a href="https://web4college.com">self</a> <a href="https://web4college.com" target="_blank">blank</a> self blank Attribute values All possible values of target attribute target='_self': Self-based attribute opens the link in the current window. This is the default value. Preview CodePreview ExampleTry itExampleCopyTry it<a href="https://web4college.com" target="_self">HTML</a> target='_blank': blank based attribute opens the link in new window. Preview CodePreview ExampleTry itExampleCopyTry it<a href="https://web4college.com" target="_blank">web4college</a> target='_top': top based attribute opens the link in the top frame. If a link is present in multiple nested frames then the link opens in the outermost frame. Preview CodePreview ExampleTry itExampleCopyTry it<a href="https://web4college.com" target="_top">HTML</a> target='_parent': parent based attribute opens the window in the parent frame. If the link is present in multiple nested frames then the link opens in parent frame. Preview CodePreview ExampleTry itExampleCopyTry it<a href="http://www.bing.com" target="_parent">Go to bing</a> Related TagsThe tags that support target attribute <a> tag a (anchor) tag defines hyperlink. We can make a link to other websites or other web pages. See the above given examples. Preview CodePreview ExampleTry itExampleCopyTry it<p>Upload Video: <input type="file" accept="video/*"><p> <base> tag base tag represents the default or basic URL for all the links present in the document. Preview CodePreview ExampleTry itExampleCopyTry it<base href="http://www.google.com" target="_blank"> PreviousNext