The element type "link" must be terminated by the matching end-tag "</link>

It is a Webmaster forum to discuss website promotion, CMS management, Search Engine discussions, AdSense, etc.
Post Reply
Anish
Standard User
Posts: 19
Joined: 25 Dec 2023, 14:06

The element type "link" must be terminated by the matching end-tag "</link>

Post by Anish »

I cannot save the Blogger theme due to the following error.

Code: Select all

org.xml.sax.SAXParseException; lineNumber: 2940; columnNumber: 5; The element type "link" must be terminated by the matching end-tag "</link>"
How can I fix it?
Alex George
Global Moderator
Posts: 60
Joined: 14 Nov 2023, 04:39
Location: Brooklyn

Re: The element type "link" must be terminated by the matching end-tag "</link>

Post by Alex George »

I understand from your previous topic that you are converting a static HTML template into a Blogger template. HXML has some functionalities of HTML, but some rules are different.

Consider the following line below.

Code: Select all

<link rel="preconnect" href="https://fonts.googleapis.com">
It will work on HTML but create an error code "Link must be terminated by the matching end-tag.


So, to work, you must rewrite the line as given below.

Code: Select all

  <link rel="preconnect" href="https://fonts.googleapis.com" />
Anish
Standard User
Posts: 19
Joined: 25 Dec 2023, 14:06

Re: The element type "link" must be terminated by the matching end-tag "</link>

Post by Anish »

Thank you Alex. It worked. Now I do not get that error.
Post Reply