web programming 2.7
absolute URL i
a complete URL. Ex: <a href="http://example.com/test.html">test</a> is a hyperlink using the absolute URL http://example.com/test.html.
target
attribute indicates how the browser should display the link when clicked. _self, which is the default value for the target attribute, indicates the browser will open the link in the same tab or window. If the target attribute is _blank, the web browser will open the link in a new tab or window.
anchor tag <a>
defines a hyperlink in a web page.
hyperlink
hyperlink, or link, specifies where other information is located and what action the web browser should perform when a user clicks the hyperlink. A hyperlink action may tell the web browser to go to another web page, to go to a location in the same web page, to download a file, or to send an email.
fragment,
of a document by adding a hash tag and a fragment identifier at the end of the URL. Ex: https://en.wikipedia.org/wiki/Computer_science#History refers to the "History" section of the "Computer_science" page on Wikipedia.
relative UR
specifies the relative path to the web resource with no scheme or hostname. Ex: <a href="test.html">test</a> uses the relative URL test.html to refer to an HTML document on the same website and with the same path as the current HTML document.
id attribute
to any HTML tag creates a fragment identifie
href
ttribute specifies the hyperlink's URL. Ex: <a href="https://wikipedia.org/">Wikipedia</a> displays the hyperlink Wikipedia and causes the browser to request the URL https://wikipedia.org/ when the hyperlink is clicked. Other URL schemes may cause the browser to take different actions. Ex: The URL mailto:[email protected] uses the mailto scheme that directs the browser to start an email program and address an email to [email protected].
graphical hyperlink
uses an image inside a hyperlink instead of text. Ex: The following HTML uses an image of a dog that links to the American Kennel Club .