multi line quotes in meta tags?

There seems to be a conflict between optimising meta tags and html validation.

To obtain the right number of words etc. for the Description and the Keyword metatags (yes I know keyword meta tags are not important) the meta tags between quotes go over two or three liines.

The HTML validator does NOT like this and says it should not be done.
1.  Two questions how valid or important is the HTML message and should I take any notice.
2. the html validator does say the one should turn on the option to allow multi line quotes.
Getting the syntax for this is not easy.   Does anyone know it please.
Most importantly should I take any notice of any of this for optimising for Firefox and IE6?
 
digiselAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tony McCreathTechnical SEO ConsultantCommented:
I think you are confusing new lines with line wrapping.

attributes such as the content attribute in meta tags can be any length, however they cannot contain new lines.

You seem to be entering new lines into your attributes which makes invalid html/xml and hence your error.

0
digiselAuthor Commented:
thanks for your comment.
the meta tags are contained within "xxxxxxxxxx"
there are no new lines as such.
this is why i am puzzled by the error messages.
can you throw any more light on this please?
0
Tony McCreathTechnical SEO ConsultantCommented:
could you point us to an example page that has the problem.
0
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

digiselAuthor Commented:
Thanks for your response.
The following is what appears after running the html validator

<meta name="description" content="India travel luxury | Buy Direct | India Vacations | luxury travel India Hotel | Oberoi hotels
"> 
<meta name="Keywords" content="india travel luxury,india vacations,
luxury travel india vacations,tours,india hotels,tour,hotels,exclusive
itineraries,oberoi hotels,luxury india travel,tours,rajasthan,taj
mahal,ventours,oberoi,tiger,safari,kerala backwaters">


These are the relevant error messages relating to the Description and Keyword tags above

1. Error in line 7: This line contains part of a quoted string that spans more than one line (not recommended) or a quoted string (like an attribute value) that is missing the start or end quotation mark. Check this line for improperly quoted attribute values that may be missing a start or end quotation mark. As currently configured, HTML Validator requires that all quoted strings be contained on one line and have start and end quotation marks. Note that because of inconsistent handling by user agents, it is not recommended that attribute values contain line breaks.

2. Error in line 8: This line contains part of a quoted string that spans more than one line (not recommended) or a quoted string (like an attribute value) that is missing the start or end quotation mark. Check this line for improperly quoted attribute values that may be missing a start or end quotation mark. As currently configured, HTML Validator requires that all quoted strings be contained on one line and have start and end quotation marks. Note that because of inconsistent handling by user agents, it is not recommended that attribute values contain line breaks.

3. Error in line 10: This line contains part of a quoted string that spans more than one line (not recommended) or a quoted string (like an attribute value) that is missing the start or end quotation mark. Check this line for improperly quoted attribute values that may be missing a start or end quotation mark. As currently configured, HTML Validator requires that all quoted strings be contained on one line and have start and end quotation marks. Note that because of inconsistent handling by user agents, it is not recommended that attribute values contain line breaks.

4. Error in line 11: This line contains part of a quoted string that spans more than one line (not recommended) or a quoted string (like an attribute value) that is missing the start or end quotation mark. Check this line for improperly quoted attribute values that may be missing a start or end quotation mark. As currently configured, HTML Validator requires that all quoted strings be contained on one line and have start and end quotation marks. Note that because of inconsistent handling by user agents, it is not recommended that attribute values contain line breaks.

5. Error in line 12: This line contains part of a quoted string that spans more than one line (not recommended) or a quoted string (like an attribute value) that is missing the start or end quotation mark. Check this line for improperly quoted attribute values that may be missing a start or end quotation mark. As currently configured, HTML Validator requires that all quoted strings be contained on one line and have start and end quotation marks. Note that because of inconsistent handling by user agents, it is not recommended that attribute values contain line breaks.

6. Comment: You can allow a quoted string to exist on more than one line by turning on the option to allow multi-line quotes. However, allowing multi-line quotes may make it more difficult to find problems caused by incorrect quoting. This option is in CSE HTML Validator's Validator Engine Options.


Regards
0
ShaneJonesCommented:
You need to stop them going over more than one line

use this instead but make sure that you turn word wrap off and ensure that the descriptions goesover 1 line and that keywords is just 1 line

<meta name="description" content="India travel luxury | Buy Direct | India Vacations | luxury travel India Hotel | Oberoi hotels">

<meta name="Keywords" content="india travel luxury,india vacations,luxury travel india vacations,tours,india otels,tour,hotels,exclusive
itineraries,oberoi hotels,luxury india travel,tours,rajasthan,taj mahal,ventours,oberoi,tiger,safari,kerala backwaters">
0
Tony McCreathTechnical SEO ConsultantCommented:
Showing it in the code snippet would clarify this.

While were here,

Your description should be a sentence describing the content of the page.

I think you are over using some words in your keyword list. Some advise that you should not repeat the same word over 3 times to avoid being flagged as a word spammer.
<meta name="description" content="India travel luxury | Buy Direct | India Vacations | luxury travel India Hotel | Oberoi hotels">
 
<meta name="Keywords" content="india travel luxury,india vacations,luxury travel india vacations,tours,india hotels,tour,hotels,exclusive itineraries,oberoi hotels,luxury india travel,tours,rajasthan,taj mahal,ventours,oberoi,tiger,safari,kerala backwaters"> 

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
digiselAuthor Commented:
thanks for what you did
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.