Skip to main content
juledur
Participant
Sep 26, 2020 7:35 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    7 replies

    juledur
    juledurAuthor
    Participant
    Sep 26, 2020 8:12 PM UTC

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Sep 26, 2020 8:25 PM UTC

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    juledur
    juledurAuthor
    Participant
    Sep 26, 2020 8:40 PM UTC

    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.

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Sep 26, 2020 8:10 PM UTC

    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/

     

    Translate
    Nancy O'Shea— Product User & Community Expert