Forum Moderators: open

Message Too Old, No Replies

Meta Tags Error in Blogspot template

         

charleychacko

12:51 pm on Jul 12, 2007 (gmt 0)

10+ Year Member



I get this error in the preview after I entered the meta tags on blogspot blog.

Whaat should I do?

We were unable to preview your template
Please correct the error below, and submit your template again.
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The element type "meta" must be terminated by the matching end-tag "".

encyclo

1:00 pm on Jul 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Blogspot tempates, I believe, should always be in XHTML. Does your meta element have a trailing slash?:

<meta name="description" content="blablabla" [b]/[/b]>

charleychacko

1:07 pm on Jul 12, 2007 (gmt 0)

10+ Year Member



Nope.

Should I add each for meta name="description" and meta name="keyword" with a space after the last word for eg "black" />

encyclo

1:15 pm on Jul 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, try adding the trailing slash on both meta eleents (the trailing slash acts as a closing delimiter in XHTML), then validate the template again. You should be using an XHTML doctype too:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

tomda

1:16 pm on Jul 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep!

This is XHTML rule, which is basicly to put an end slash to any tag that don't have a closing tag or end-tag (like <meta>, <br>, <img>, <hr>, etc...)

charleychacko

1:25 pm on Jul 12, 2007 (gmt 0)

10+ Year Member



Thanks, it worked :)

But it doesn't show meta, when I open the link and right click View Source. Did it not work?