Ads Top

Target attribute example in HTML


What is target attribute properties?
Target attribute is a part of the "a" element. target attribute has five type value as blank, top, self, parent and frame name. We use as this code: <a href="urlname.html" target="_blank">Text name</a>.

target="_blank": When clicked on any page then will be open on the new window.
target="_top": When clicked on any page then will be open on the entire window.
target="_self": When clicked on any page then will be open on the same frame.
target="_parent": When clicked on any page then will be open on the parent frame.
target="frameName": When clicked on any page then will be open on the named frame as:
    <a href="urlname.html" target="myframe">Main frame</a>
    <frame src="urlname.html" name="myframe"></frame>

No comments:

Copyright Reserved to Anything Learn. Powered by Blogger.