W3Schools - HTML (HTML Links)

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Example of a Relative URL (one without http://www....)

<a href="html_images.asp">HTML Images</a> - A local link (link to the same web site) is specified with a ___(rel-) ___[3 letters].

HTML Color for Links

By default, a link will appear like this (in all browsers): - an unvisited link is underlined and blue - a visited link is underlined and purple - an active link is underlined and red - You can change the default colors, by using styles: - IMAGE: you can change the default colors, by using styles:

Target Attribute

This attribute specifies where to open the linked document. - it can have one of the following values: _blank; _self; _parent; _top; framename

"framename" Value for Target Attribute

This value of the Target Attribute opens the linked document in a named frame.

"_blank" Value for Target Attribute

This value of the Target Attribute opens the linked document in a new window or tab.

"_top" Value for Target Attribute

This value of the Target Attribute opens the linked document in the full body of the window.

"_parent" Value for Target Attribute

This value of the Target Attribute opens the linked document in the parent frame.

"_self" Value for Target Attribute

This value of the Target Attribute opens the linked document in the same window/tab as it was clicked (this is default).

Example/Syntax of a Hyperlink (an Absolute URL)

Syntax: <a href="http://www.w3schools.com/html/">Visit our HTML tutorial</a> - take note of the following: a Element, href Attribute - IMAGE: this example uses an absolute URL (A full web address...includes http://www).


Kaugnay na mga set ng pag-aaral