80 likes | 216 Views
HTML ( Hypertext Markup Language ). Hyperlinks. Hyperlinks from text to other sites <a href=“ write address, to which leads the hyperlink "> Write the link, which is visible at the screen </a> Example : <a href=" http://www. dir . bg "> Hyperlink to www . dir . bg </a>.
E N D
HTML (Hypertext Markup Language )
Hyperlinks Hyperlinks from text to other sites <a href=“writeaddress, to which leads the hyperlink">Write the link, which is visible at the screen</a> Example: <a href="http://www.dir.bg">Hyperlink towww.dir.bg</a>
Hyperlink to inner page <a href="http://www. dir.bg /vreme/vreme.html">Hyperlink to pagevreme.html from the site www.dir.bg</a> Text hyperlinks to pages from the same site 1 Main directory Index.html page1.html 2 Subdirectory-folder1 3 page2.html 1<a href="page1.html">Hyperlink to page1.html from the initial page index.html</a> 2<a href="folder1/page2.html">Hyperlink topage2.html, placed at folder1, from the initial page index.html</a> 3<a href="../index.html">Hyperlink to page index.html from page2.html, pklaced at folder1</a>
Text hyperlinks to parts from the same page <a name=“arbitrary name"></a>example: <a name=“label1"></a> <a href=“#etiket 1">Hyperlink to label1</a> <a name=“label1">This is visible on the screen label1</a>
Text hyperlinks to е-mail address and files at FTP server Hyperlink to e-mail address <a href="mailto:name@somewhere.bg">name@somewhere.bg</a> Hyperlink tofile from FTP server <a href="ftp://address.bg/file.pdf">Hyperlink to file in format pdffrom FTP server</a>
Hyperlinks,which are open in new window Attribute target target="_blank" <a href="http://www.dir.bg" target="_blank">Hyperlink todir.bg, which will be opened in new window</a>Hyperlinks at the same or determined windowtarget=“_self“ (by default) target=“_somename"
Changing the color of text hyperlinks <body>the hyperlink’s color is changed by attributes link – determine the color of unvisited hyperlinks alink - determine the color of hyperlinksat the moment of clicking on them • vlink - determine the color of already visited hyperlinks Example: <bodybgcolor="#ffffff" text="#000000" link="#0000ff" alink="#ff0000" vlink="#ff00ff">
Using images for hyperlinksimage: “image.jpg” <a href="http://www.xxxx.bg"><img src="image.jpg" /></a>