The anchor (<a>) tag is used to identify a string of text or an image that serves as a hypertext link to another document. Linking to a string of text looks like this:I am <A HREF="link.html">linking</A> to you!
To make an image a link, enclose the image tag within the anchor tags as follows:<A HREF="link.html"><IMG SRC="pixie.gif"></A>
Most graphical browsers display linked text underlined and in blue by default, but this behavior can be altered. Linked graphics appear with a blue outline (unless you turn the outline off in the <img> tag by setting the border attribute to zero).
The URL is the pathname of the document you want to link to. URLs can be absolute or relative.
An absolute URL is made up of the following components: a protocol identifier, a host name (the name of the server machine), and the path to the specific filename. When you are linking to documents on other servers, you need to use an absolute URL. The following is an example of a link with an absolute URL.
Here the protocol is identified as http (HyperText Transfer Protocol, the standard protocol of the Web)
A relative URL provides a pointer to another document relative to the location of the current document. The syntax is based on pathname structures in the Unix operating system. When you are pointing to another document within your own site (on the same server), it is common to use relative URLs.
By default, a relative URL is based on the current document. You can change that by placing the <base> element in the document header (<head>) to state explicitly the base URL for all relative pathnames in the document. The <base> tag can only appear in the <head> of the document, and it should appear before any other element with an external reference. The browser uses the specified base URL (not the current document's URL) to resolve relative URLs.
Web Designing Related Interview Questions
|HTML Interview Questions||HTML 5 Interview Questions|
|Flash Interview Questions||Graphic Design Interview Questions|
|Illustrator Interview Questions||Dreamweaver Interview Questions|
|UI Developer Interview Questions||Dreamweaver CS3 Interview Questions|
|CSS Advanced Interview Questions||Web Developer Guide Interview Questions|
|Log Shipping Interview Questions||Spring Boot Interview Questions|
|UI Designer Interview Questions||Bootstrap 4 Interview Questions|
Web Designing Related Practice Tests
|HTML Practice Tests||HTML 5 Practice Tests|
|Flash Practice Tests||Graphic Design Practice Tests|
|Illustrator Practice Tests||Dreamweaver Practice Tests|
|UI Developer Practice Tests||Dreamweaver CS3 Practice Tests|
|Web Developer Guide Practice Tests||Advanced jQuery Practice Tests|
Web Designing Tutorial
Designing For A Variety Of Browsers
Designing For A Variety Of Displays
Web Design Principles For Print Designers
A Beginners Guide To The Server
Printing From The Web
Structural Html Tags
Adding Images And Other Page Elements
Specifying Color In Html
Cascading Style Sheets
Server Side Includes
Designing Graphics With The Web Palette
Audio On The Web
Video On The Web
Flash And Shockwave
Introduction To Smil
Introduction To Dhtml
Introduction To Xml
Wap And Wml
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.