Skip to main content
Inspiring
March 3, 2019
Answered

Invalid Markup

  • March 3, 2019
  • 1 reply
  • 972 views

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

This topic has been closed for replies.
Correct answer English100

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.


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

1 reply

Nancy OShea
Community Expert
Community Expert
March 3, 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
Inspiring
March 4, 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

Nancy OShea
Community Expert
Community Expert
March 4, 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