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

     

    Nancy O'Shea— Product User & Community Expert
    juledur
    juledurAuthor
    Participant
    September 26, 2020

    Thanks, Nancy.

    I tried your suggestion, but it didn't help.  See screenshot for what the Firefox developer tool shows on inspect.  It looks like it's rearranging my code so that the <div> is inserted in between the two image links.

    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