aboutsummaryrefslogtreecommitdiff
path: root/files/he/web/html/element/a/index.html
blob: de79afa3e5ea7420166cce0464382a4460b16bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
title: '<a>: תגית קישור'
slug: Web/HTML/Element/a
translation_of: Web/HTML/Element/a
---
<p>{{HTMLRef}}</p>

<p dir="rtl">תגית <strong><code>&lt;a&gt;</code></strong> מוסיפה קישור טקסט/תמונה במסמך ה-HTML. זוהי תגית מסוג Inline המסמנת את האלמנט עצמו בלבד.</p>

<p> </p>

<p>{{EmbedInteractiveExample("pages/tabbed/a.html", "tabbed-standard")}}</p>

<p> </p>

<table>
 <tbody>
  <tr>
   <th>קטגוריה</th>
   <td>תגיות Inline.</td>
  </tr>
  <tr>
   <th>תוכן מורשה</th>
   <td>טקסטים, תמונות ומספרים
    <p> </p>
   </td>
  </tr>
  <tr>
   <th>תגיות הורים מורשות</th>
   <td>תגית זו מורשית להופיע בגוף המסמך אך אינה חייבת להיות כפופה בצורה ישירה אל תגית {{HTMLElement("body")}}.</td>
  </tr>
  <tr>
   <th scope="row">ממשק DOM</th>
   <td>{{domxref("HTMLAnchorElement")}}</td>
  </tr>
 </tbody>
</table>

<h2 dir="rtl" id="תארים">תארים</h2>

<p dir="rtl">תגית זו נכללת ברשימת <a href="https://developer.mozilla.org/he/docs/Web/HTML/%D7%AA%D7%90%D7%A8%D7%99%D7%9D_%D7%92%D7%9C%D7%95%D7%91%D7%9C%D7%99%D7%99%D7%9D">התארים הגלובליים</a>.</p>

<p dir="rtl">href - משמש להוספת כתובת קישור.<br>
 target - קובע היכן יפתח הקישור (עמוד הנוכחי, כרטיסייה חדשה וכו').<br>
 id - מזהה המשמש לקישור פנימי בין עמודים.</p>

<dl>
 <dt dir="rtl">
 <h2 dir="rtl" id="דוגמא_1_-_קישור_סטנדרטי">דוגמא 1 - קישור סטנדרטי</h2>

 <pre>&lt;!-- anchor linking to external file --&gt;
&lt;a href="https://www.mozilla.com/"&gt;
External Link
&lt;/a&gt;
</pre>
 </dt>
 <dt dir="rtl">
 <h2 dir="rtl" id="דוגמא_2_-_קישור_למזהה_פנימי_בעמוד">דוגמא 2 - קישור למזהה פנימי בעמוד</h2>

 <pre>&lt;!-- links to element on this page with id="attr-href" --&gt;
&lt;a href="#attr-href"&gt;
Description of Same-Page Links
&lt;/a&gt;

</pre>
 </dt>
 <dt dir="rtl">
 <h2 dir="rtl" id="דוגמא_3_-_תמונה_לחיצה">דוגמא 3 - תמונה לחיצה</h2>

 <pre>&lt;a href="https://developer.mozilla.org/en-US/" target="_blank"&gt;
  &lt;img src="https://mdn.mozillademos.org/files/6851/mdn_logo.png"
       alt="MDN logo" /&gt;
&lt;/a&gt;
</pre>
 </dt>
 <dt dir="rtl">
 <h2 dir="rtl" id="דוגמא_4_-_קישור_לדואל">דוגמא 4 - קישור לדוא"ל</h2>

 <pre>&lt;a href="mailto:nowhere@mozilla.org"&gt;Send email to nowhere&lt;/a&gt;
</pre>
 </dt>
</dl>

<h2 dir="rtl" id="ראה_גם">ראה גם</h2>

<ul>
 <li>{{HTMLElement("p")}}</li>
 <li>{{HTMLElement("img")}}</li>
 <li>{{HTMLElement("br")}}</li>
</ul>