Skip to main content
juledur
Participant
September 26, 2020
Question

How do I remove <a> tags that Dreamweaver has added on its own?

  • September 26, 2020
  • 2 replies
  • 294 views

After updating Dreamweaver, my paragraphs in my html files are now surrounded by an <a> that connects to the linked image above the text.  This tag isn't written into the code, but when you hover over the text in Live View, it shows as a gray box.  The extra code is showing up on my live website, creating links where they shouldn't be, and it has to go.  Please help!

    This topic has been closed for replies.

    2 replies

    juledur
    juledurAuthor
    Participant
    September 26, 2020

    Nancy OShea
    Community Expert
    Community Expert
    September 26, 2020

    DW doesn't like bad code.  Use the built-in W3C validation service to check your code and then fix all reported errors.  Window > Results > Validation.  Click the white triangle to check document.  Repeat often (see screenshot).

     

     

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    September 26, 2020

    I'll give that a try.  Thanks.

    What's so frustrating is that this code was working fine until recently.  It's the same problem on both Firefox and Chrome, too. That's why I thought it was an issue with Dreamweaver.


    You're probably looking at a cached version of your page. 

    Clear your browser's cache memory and use F5 or Ctrl+R to refresh the page.

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Community Expert
    September 26, 2020

    Switch to code view and close the <a> tag. 

     

    <!DOCTYPE html>
    <html lang="eng">
    <head>
    <title>Page Title</title>
    </head>
    <body>

    <h1>This is a Heading</h1>

    <a href="https://example.com">This is a hyperlink</a>

    <p>This is a paragraph.</p>

    </body>
    </html>

     

    HTML Tutorials:

    https://www.w3schools.com/

     

    Nancy O'Shea— Product User & Community Expert