Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Invalid Markup

Contributor ,
Mar 03, 2019 Mar 03, 2019

For some unknown reason, my template has begun to show a </a> tag in yellow after a link and I've not changed the code in ages. The screenshot show what I'm referring to. I can delete the tag, add the link back but the tag keeps reappearing and I've no idea how to fix it. If I leave it alone and check to see what the page looks like in Safari, the link works fine but is not underlined.

Any help will be appreciated.

Thanks

Alan

Screen Shot 2019-03-03 at 3.38.46 PM.pngScreen Shot 2019-03-03 at 3.38.58 PM.png

1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Mar 04, 2019 Mar 04, 2019

Being as though it was a template, I took a story I had already posted using the template did a save as Template.html, removed the added text and am using this as my new template and the errant </a> has gone away. Not the correct way of fixing the problem but it works.

Alan

Translate
Community Expert ,
Mar 03, 2019 Mar 03, 2019

The unclosed tag is probably falling somewhere above the cited code line.

Your screenshot doesn't provide enough information.   We would need to see your entire code.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 04, 2019 Mar 04, 2019

Nancy

But if I delete it and then add the URL for HOME back in, the </a> reappears. Also, if I do what the program tells me (apply the style to HOME and delete the tag?, it reappears. Also, everyone of the links on that page has </a> after them but those tags aren't visible.

Alan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 04, 2019 Mar 04, 2019

Like I said, you have an unclosed tag somewhere else in your code.  Malformed code can cause all sorts of weirdness that DW can't reconcile on its own.  Please post a link to your problem page.  Or copy & paste your entire code into a forum reply.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 04, 2019 Mar 04, 2019
LATEST

Being as though it was a template, I took a story I had already posted using the template did a save as Template.html, removed the added text and am using this as my new template and the errant </a> has gone away. Not the correct way of fixing the problem but it works.

Alan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines