'Missing space character' error??

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
Bluenose
Rank 0 - Newcomer
Posts: 3
Joined: Sun Jan 19, 2014 2:18 am

'Missing space character' error??

Post by Bluenose »

Hello

My CSE HTML validator is giving me the following error
Error in line 169 at character 55: Is there a missing space character? A quoted string (like an attribute value) cannot be immediately followed by text. It must be followed by a space or by the end of the tag.


related to this line in my code:

Code: Select all

<object data="BengalTiger.pdf"type="application/x-pdf"width="500" height="400">
This line fits in here in my code:

Code: Select all

<object data="BengalTiger.pdf"type="application/x-pdf"width="500" height="400">

<p>Please download our menu from <a href="BengalTiger.pdf">here</a></p></object>
What am I doing wrong, please?

Thank you.
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: 'Missing space character' error??

Post by Albert Wiersch »

Hello,

There should be spaces before the "type" and "width" attributes, like this:

Code: Select all

<object data="BengalTiger.pdf" type="application/x-pdf" width="500" height="400">
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Bluenose
Rank 0 - Newcomer
Posts: 3
Joined: Sun Jan 19, 2014 2:18 am

Re: 'Missing space character' error??

Post by Bluenose »

Hello

Oh, yes, I see what you mean!

Many thanks for pointing that out - the error have gone now.

Cheers!

Bluenose
Post Reply