View Single Post
Old 01-15-2011, 07:23 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by crutledge View Post
Code:
<a id="CH_1"></a>
<h2>CHAPTER 1.</h2>
or

Code:
<h2 id="CH_1">CHAPTER 1.</h2>
The second is correct, the first is wrong, unless everything is wrapped in a <div>.

Quote:
The reason I'm asking this is that I normally use the second format. On loading a file to Sigil, with TIDY on full, each

Code:
<h2 id="CH_#">
was changed to

Code:
<h2 id="00002">
If I remember correctly, fragment names cannot start with a digit, so the second would be wrong.
Jellby is offline   Reply With Quote