Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Need Help with Syntax Error

Posted by: spinlady Nov 10 2019, 12:29 PM

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

Posted by: Christian J Nov 10 2019, 04:14 PM

Spaces in ID values is not allowed.

QUOTE(spinlady @ Nov 10 2019, 06:29 PM) *

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"




Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)