Need Help with Syntax Error |
Need Help with Syntax Error |
spinlady |
Nov 10 2019, 12:29 PM
Post
#1
|
Group: Members Posts: 6 Joined: 10-October 18 Member No.: 26,729 |
Hello,
I'm hoping you people can tell me how to correct an html syntax error (14 occurrences) in an ebook file. Error: File___witch_of_sulphur_mountain_kindle_filtered.html; Line 2336: Value of attribute ”id” for element <img> must begin with one of {A-Z,a-z} followed by zero or more of {A-Z,a-z,0-9, . . .}. Line 2336: <p class=MsoNormal style='text-align:center'><a name="Agnes_16"></a><a href="#Photos"><span style='font-size:16.0pt;color:windowtext;text-decoration: none'><img class="pixels" width=385 height=538 alt="Agnes, aged 16, high school graduation photo, 1923" id="Picture 33" src="___witch_of_sulphur_mountain_kindle_filtered.fld/image001.jpg"></span></a></p> As far as I can tell it follows the same form, including spaces, as my previous book, example below, in which there are no syntax errors, and all the links work. <p class="Titles" style='margin-bottom:0cm;margin-bottom:.0001pt' ><a id="Title_Page" ></a><a href="#TOC" ><span lang=EN-US ><img class="pixels" alt="Title Page" id="Picture24" src="_____ms_spinsters_save_to_web_utf_8_sept_22_18_files/image001.png" ></span></a></p> The following example is from my current file that flags it as a syntax error: <p class=MsoNormal style='text-align:center'><a id="Meher_Mount_1956"></a><a href="#Photos"><span style='color:windowtext; text-decoration:none'><img class="pixels" alt="Meher Mount, circa 1956" id="Picture 15" src="___witch_of_sulphur_mountain_kindle_filtered.fld/image003.jpg"></span></a></p> Thanks kindly for any assistance you can offer. David Madison |
Christian J |
Nov 10 2019, 04:14 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,679 Joined: 10-August 06 Member No.: 7 |
Spaces in ID values is not allowed.
As far as I can tell it follows the same form, including spaces, as my previous book, example below, in which there are no syntax errors, and all the links work. No the following IDs don't contain any spaces: QUOTE id="Title_Page" id="Picture24" |
Lo-Fi Version | Time is now: 3rd June 2024 - 04:46 PM |