Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Build Hyper Link Indexes within the Same Document
How To Build Hyper Link Indexes within the Same Document? - XHTML 1.0 Tutorials - Understanding Hyper Links and URLs
✍: FYIcenter.com
If you want build some hyper link indexes within the same document, you need use "a" elements to define some bookmarks, then use "a" elements to define hyper links that pointing to those bookmarks.
The tutorial example below shows you how to create 3 hyper links at the beginning of the document to serve as table of contents. Those hyper links are pointing to 3 bookmarks that defined later in the document.
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Bookmark Elements</title> </head> <body> <p> <a href="/#101">What is XHTML?</a><br/> <a href="/#201">Where can I download XHTML?</a><br/> <a href="/#301">How to install XHTML?</a><br/> </p> <h3>XHTML FAQ by FYIcenter.com</h3> <h4><a name="101">Question 101</a> - What is XHTML?</h4> <p>XML + HTML.</p> <h4><a name="201">Question 201</a> - Where can I download XHTML 1.0?</h4> <p>Nowhere.</p> <h4><a name="301">Question 301</a> - How to install XHTML 1.0?</h4> <p>Nobody knows.</p> </body> </html>
If you save the above document as toc.html, and view it with
Internet Explorer, you will see three hyper links. To see how
the browser moves to the bookmark when you click a hyper link,
you need to resize the browser to a smaller window as shown below:
2007-05-12, 5164👍, 0💬
Popular Posts:
How To Enter Boolean Values in SQL Statements? - MySQL FAQs - Introduction to SQL Basics If you want...
How To Set Background to Transparent or Non-transparent? - CSS Tutorials - HTML Formatting Model: Bl...
Have you ever worked with Microsoft Application Blocks, if yes then which? Application Blocks are C#...
If cookies are not enabled at browser end does form Authentication work? No, it does not work.
Can event’s have access modifiers ? Event’s are always public as they are meant to serve every one r...