0


OBJEKTIF:

Setelah mempelajari materi ini diharapkan anda dapat memahami penggunaan element-element untuk menghubungkan ke internal atau eksternal halaman web.

MATERI:

Element A

ELEMENT A

Element A befungsi untuk menghubungkan ke internal ataupun eksternal halaman web. Element ini mempunyai attribute hrefname, dan target.  Attribute href berfungsi sebagai hypertext reference yang mempunyai nilai URI (uniform resource identifier) yang akan menghubungkan ke eksternal halaman web. Attribute name berfungsi untuk menghubungkan ke tempat tujuan dalam halaman web (anchor). Attribute target berfungsi untuk menampilkan halaman web pada suatu jendela frame atau jendela baru.

Sintaks:
<a href="uri" name="name" target="_blank"|"parent"|"_top"|"_self">
   ...........................
</a>


Contoh :


<html>
<head>
<title>Latihan Hyperlink</title>
</head>
<body>Link:
<ol>
<li><a href="http://www.yahoo.com" target="_blank">yahoo</a></li>
<li><a href="http://www.google.com" 
target="_self">google</a></li>
<li><a href="http://ums.ac.id">UMS </a></li>
</ol>
</body>

</html>


Hasil :
Latihan Hyperlink Link:
  1. yahoo
  2. google
  3. UMS


Post a Comment Blogger

Emoticon
:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Top