
: Is it possible to create anchors in the numbers of an list? I need a clarification regarding the link creation for <ol> list in the HTML page. Here is the example code for reference.
I need a clarification regarding the link creation for <ol> list in the HTML page.
Here is the example code for reference.
<ol>
<li>test</li>
<li>test</li>
</ol>
that gives this as output:
test
test
I need to create the links only on the numbers preceding the actual text. Is it possible?
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Rita

: How do I upload an ebook I have an e-book I want to publish free, ideally I want it published on Amazon but happy to follow the trail to get that done. Can anyone tell me the steps needed

: Block quotes in numbered lists that don't interrupt numbering I am working on a book that has a long lists of paragraphs that are numbered as in a numbered list. Within several of the paragraphs
2 Comments
Sorted by latest first Latest Oldest Best
Earlier in text:
<a name="header1">Header 1</a>
<a name="header2">Header 2</a>
further down...
<ol>
<li><a href="#header1">item one</a></li>
<li><a href="#header2">item two</a></li>
</ol>
If you're making an EPUB book, every tag must be closed, or self-closed.
idiotprogrammer had the syntax right, but the example did not work (for IDPF specs).
<img src="image1.jpg" id="image0001" title="this is self-closed" />
Free books android app tbrJar TBR JAR Read Free books online gutenberg
Here's a solution which does what you need:
<ol>
<a href="#"><li></li></a>
<a href="#"><li></li></a>
</ol>
(I tried putting a non-breaking space there, but it underlined the space. You could probably use css to set text-decoration: none for the a element.)
If you want the links to go anywhere, you could replace "#" with an anchor URL.
Update: Ahh, I see that the content model doesn't allow A tag underneath OL. So my answer is wrong.
Free books android app tbrJar TBR JAR Read Free books online gutenberg