The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Need Help with Syntax Errors, Syntax Errors
spinlady
post Oct 10 2018, 01:10 PM
Post #1





Group: Members
Posts: 6
Joined: 10-October 18
Member No.: 26,729



Greetings, All,

I’m new to HTML and CSS, and working with a Word for Mac file exported as HTML. It’s an 836-page ebook with 353 photos and 3,000 links. It looked and worked almost as I wanted it to right out of the chute. Working with BBEdit, I tinkered with it, and it looks and works perfectly in BBEdit preview, Kindle App for Mac, Kindle Previewer 3, Google Chrome, Firefox, Safari, Opera, and Vivaldi. Yet it has 4,721 syntax errors. Some I can fix, but as to the most of them I’m at a loss.

The following 6 errors consistently repeat within the first 1,000 listed errors, and as the book is pretty consistent throughout, probably account for most of them. Any suggestions as to how to correct them would be greatly appreciated.

1. Warning: The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.
From line 2322, column 68; to line 2322, column 89
<p class="Titles" style='margin-bottom:0cm;margin-bottom:.0001pt' ><a name="Title_Page" ></a><a href="#TOC" ><span lang=EN-US ><img alt="Title Page" width="100%" height="auto" id="Picture 24"

2. Error: Bad value 100% for attribute width on element img: Expected a digit but saw % instead.
From line 2322, column 128; to line 2323, column 73
ng=EN-US ><img alt="Title Page" width="100%" height="auto" id="Picture 24"↩src="_____ms_spinsters_save_to_web_utf_8_sept_22_18_files/image001.png" ></span

3. Error: Bad value auto for attribute height on element img: Expected a digit but saw a instead.
From line 2322, column 128; to line 2323, column 73
ng=EN-US ><img alt="Title Page" width="100%" height="auto" id="Picture 24"↩src="_____ms_spinsters_save_to_web_utf_8_sept_22_18_files/image001.png" ></span>

4. Error: Bad value Picture 24 for attribute id on element img: An ID must not contain whitespace.
From line 2322, column 128; to line 2323, column 73
ng=EN-US ><img alt="Title Page" width="100%" height="auto" id="Picture 24"↩src="_____ms_spinsters_save_to_web_utf_8_sept_22_18_files/image001.png" ></span>

5. Error: The clear attribute on the br element is obsolete. Use CSS instead.
From line 2325, column 75; to line 2326, column 44
Roman"' ><br↩clear=all style='page-break-before:always' >↩</spa

6. Error: The align attribute on the p element is obsolete. Use CSS instead.
From line 2365, column 1; to line 2366, column 36
></span>↩↩<p class=MsoNormal align=center style='margin-bottom:0cm;margin-bottom:.0001pt;↩text-align:center;text-indent:0cm' ><span

From line 2380, column 1; to line 2380, column 61
</a></p>↩↩<p class=SingleSpace align=center style='text-align:center' ><b ><s

From line 2551, column 1; to line 2551, column 56
pan></p>↩↩<p class=Headings14 align=left style='text-align:left' ><span

Many thanks in advance for any assistance you can offer.

David

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
spinlady   Need Help with Syntax Errors   Oct 10 2018, 01:10 PM
pandy   What validator did you use? And what doctype? 1. ...   Oct 10 2018, 02:32 PM
Christian J   1. Correct. Use id rather than name. But why on e...   Oct 10 2018, 03:48 PM
pandy   Did you mean an [i]empty container? Agreed. No. ...   Oct 10 2018, 03:56 PM
Christian J   No. What I said, why use it with a container? Th...   Oct 10 2018, 06:12 PM
pandy   No? So what's wrong with using it with the A? ...   Oct 11 2018, 01:30 AM
Christian J   BTW I didn't understand what you meant with e...   Oct 11 2018, 06:15 AM
pandy   Ah, I didn't notice there are two As after eac...   Oct 11 2018, 07:08 AM
Christian J   But do you think that's what the validator is...   Oct 11 2018, 07:27 AM
spinlady   Many thanks, Pandy, and Christian J for your much ...   Oct 11 2018, 02:11 AM
pandy   I thought id must only be used once in a document...   Oct 11 2018, 02:49 AM
pandy   The board mess up the whole post if I quote #3. Af...   Oct 11 2018, 02:56 AM
Christian J   I suggest you use HTML 4.01 Strict though. Otherw...   Oct 11 2018, 04:23 PM
pandy   Not necessarily, with <!DOCTYPE HTML PUB...   Oct 12 2018, 02:06 AM
Christian J   No, but there's a big difference. Not betwe...   Oct 12 2018, 06:51 AM
spinlady   Thanks a lot, Pandy and Christian J: I took your ...   Oct 11 2018, 12:17 PM
pandy   Great! Put please, move on to HTML 4.01 Strict...   Oct 11 2018, 01:23 PM
spinlady   Pandy and Christian J. My apologies for not getti...   Oct 15 2018, 04:51 PM
pandy   Did you write a new CSS rule? Maybe you forgot to ...   Oct 15 2018, 05:22 PM
CharlesEF   You should write a class for the 5 images you want...   Oct 15 2018, 07:20 PM
spinlady   Okay, I finally got it! I was going about it b...   Oct 16 2018, 01:32 PM
Christian J   So I was trying to write a class for the 5 that e...   Oct 16 2018, 03:34 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 03:17 PM