Commits

Anonymous committed 88ea1fd

Added the start of the id="" attribute and placeholders.

Comments (0)

Files changed (2)

hebrew-html-tutorial/hebrew-html-tutorial.xml.tt

             </para>
         </section>
 
+        <section xml:id="id-attribute">
+            <info>
+                <title>התכונה id="" ושימוש בסמנים</title>
+            </info>
+            <para>
+                ניתן להשתמש בתכונה "id" שקבילה כמעט לכל האלמנטים
+                כדי להכניס סמן בטקסט, שמאפשר לקישורים פנימיים או חיצוניים
+                להפנות לחלק מסוים של הדף. ההפנייה לסמן מבוצעת על-ידי השימוש
+                בתו "#" ובמזהה של הסמן. ראוי לציין שלא כל התוים קבילים במזהה
+                ומומלץ להיזהר. הנה דוגמה:
+            </para>
+
+            [% embed_sample("with-placeholders") %]
+
+        </section>
+
     </section>
 
     </chapter>

hebrew-html-tutorial/samples/with-placeholders.html

+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
+<head>
+<title>Page with Table-of-Contents</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+</head>
+<body>
+    <h1>Page with Table-of-Contents</h1>
+
+<ul>
+<li><a href="#alice">Alice in Wonderland</a></li>
+<li><a href="#gulliver">Gulliver's Travels</a></li>
+<li><a href="#treasure">Treasure Island</a></li>
+<li><a href="#musketeers">The Three Musketeers</a></li>
+<li><a href="#looking_glass">Through The Looking Glass</a></li>
+</ul>
+
+<h2 id="alice">Alice in Wonderland</h2>
+
+<p>
+Alice in Wonderland is a book by <a 
+href="http://en.wikipedia.org/wiki/Lewis_Carroll">Lewis Carroll</a>, which was
+the pen name of Charles Lutwidge Dodgson.
+</p>
+
+<h2 id="gulliver">Gulliver's Travels</h2>
+
+<p>
+Gulliver's Travels is a novel by Jonathan Swift. While not intended as 
+Children's literature, it became popular as such.
+</p>
+
+<h2 id="treasure">Treasure Island</h2>
+
+<p>
+Treasure Island is a novel by Robert Louis Stevenenson about pirates.
+</p>
+
+<h2 id="musketeers"><a href="http://en.wikipedia.org/wiki/The_Three_Musketeers">The 
+Three Musketeers</a></h2>
+
+<p>
+This is a historical fiction novel by Alexandre Dumas, père.
+</p>
+
+<h2 id="looking_glass">Through The Looking Glass</h2>
+
+<p>
+The follow-up to <a href="#alice">Alice in Wonderland</a>.
+</p>
+
+</body>
+</html>