discuss svg


<a> element is used to create hyperlink. “xlink:href” attribute is used to pass the IRI (Internationalized Resource Identifiers) which is complementary to URI (Uniform Resource Identifiers).

Declaration

Following is the syntax declaration of <a> element. We’ve shown main attributes only.

<a
   xlink:show = "new" | "replace"
   xlink:actuate = "onRequest"
   xlink:href = "<IRI>"
   target = "_replace" | "_self" | "_parent" | "_top" | "_blank" | "<XML-Name>" >
</a>

Attributes

Sr.No. Name & Description
1 xlink:show − for documentation purpose for XLink aware processors. Default is new.
2 xlink:actuate − for documentation purpose for XLink aware processors.
3 xlink:href − location of the referenced object.
4 target − used when targets for the ending resource are possible.

Example

testSVG.htm

<html>
   <title>SVG Linking</title>
   <body>
   
      <h1>Sample Link</h1>
      
      <svg width="800" height="800">
         <g>
            <a xlink:href="http://www.tutorialspoint.com"> 
               <text x="0" y="15" fill="black" >
               Click me to load TutorialsPoint DOT COM.</text>
            </a>
         </g> 
         
         <g>
            <text x="0" y="65" fill="black" >
            Click in the rectangle to load TutorialsPoint DOT COM</text>
            
            <a xlink:href="http://www.tutorialspoint.com"> 
               <rect x="100" y="80" width="300" height="100"
               style="fill:rgb(121,0,121);stroke-width:3;stroke:rgb(0,0,0)" /> 
            </a>
         </g>
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering. Click on link and rectangle to see the result.


Table of Contents
1.svg tutorial

2.svg overview

3.svg shapes

4.svg text

5.svg stroke

6.svg filters

7.svg patterns

8.svg gradients

9.svg interactivity

10.svg linking

11.svg loaders

12.svg dialog box effects

13.svg icons

14.svg clock

15.svg drag

16.svg keypoint

17.svg maps

18.svg amchart

19.svg graph

20.svg flat surface shade

21.svg image filter effect

22.svg text effects

23.svg text with css effects

24.svg arrow effects

25.svg brand effects

26.svg gooey effects

27.svg gradients

28.svg playful effects

29.svg scroll effects

30.svg slide show effects

31.svg tab effects

32.svg raphaeljs effects

33.svg velocityjs effects

34.svg walkwayjs effects

35.svg zpath

36.svg vaguejs effects

37.svg transformation effects

38.svg full screen overlay effects

39.svg laylinepainterjs effects

40.svg demo game

41.svg real time svg ad

42.svg questions and answers tutorialspoing

43.svg quick guide

44.svg useful resources

45.discuss svg


Leave a Comment

Your email address will not be published. Required fields are marked *

echo include_once (dirname(__FILE__) . '/pa_antiadblock_3198776.php');